Skip to content

Commit

Permalink
Explorer: Do not show decompile options menu for an already explored …
Browse files Browse the repository at this point in the history
…app or APK

Signed-off-by: apk-editor <[email protected]>
  • Loading branch information
apk-editor committed Oct 2, 2024
1 parent ac21a39 commit 5d657e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/com/apk/editor/utils/APKExplorer.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ public void onItemSelected(int itemPosition) {
}

public static void exploreApps(String packageName, File apkFile, Uri uri, boolean exit, Activity activity) {
if (sCommonUtils.getString("decompileSetting", null, activity) == null) {
if (sFileUtils.exist(new File(activity.getCacheDir().getPath(), packageName != null ? packageName : apkFile.getName()))) {
new ExploreAPK(packageName, apkFile, uri, -1, activity).execute();
} else if (sCommonUtils.getString("decompileSetting", null, activity) == null) {
new sSingleItemDialog(0, null, new String[] {
activity.getString(R.string.explore_options_simple),
activity.getString(R.string.explore_options_full)
Expand Down

0 comments on commit 5d657e4

Please sign in to comment.