From 56122f38bbad5237d580e86371e3f0d501c805b1 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Thu, 5 Nov 2020 18:16:07 +0100 Subject: [PATCH] Android: Rename path variable in ConvertFragment Not sure why I named it path, because it isn't a path. --- .../dolphinemu/fragments/ConvertFragment.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/ConvertFragment.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/ConvertFragment.java index ac1237ba59..d7916256af 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/ConvertFragment.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/ConvertFragment.java @@ -361,30 +361,30 @@ public class ConvertFragment extends Fragment implements View.OnClickListener { String originalPath = gameFile.getPath(); - StringBuilder path = new StringBuilder(new File(originalPath).getName()); - int dotIndex = path.lastIndexOf("."); + StringBuilder filename = new StringBuilder(new File(originalPath).getName()); + int dotIndex = filename.lastIndexOf("."); if (dotIndex != -1) - path.setLength(dotIndex); + filename.setLength(dotIndex); switch (mFormat.getValue(requireContext())) { case BLOB_TYPE_PLAIN: - path.append(".iso"); + filename.append(".iso"); break; case BLOB_TYPE_GCZ: - path.append(".gcz"); + filename.append(".gcz"); break; case BLOB_TYPE_WIA: - path.append(".wia"); + filename.append(".wia"); break; case BLOB_TYPE_RVZ: - path.append(".rvz"); + filename.append(".rvz"); break; } Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setType("application/octet-stream"); - intent.putExtra(Intent.EXTRA_TITLE, path.toString()); + intent.putExtra(Intent.EXTRA_TITLE, filename.toString()); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, originalPath); startActivityForResult(intent, REQUEST_CODE_SAVE_FILE);