Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@ public void change(String enableName, JSArray disableNames) {
);
}

// Always disable main app icon
pm.setComponentEnabledSetting(
new ComponentName(this.packageName, this.packageName + ".MainActivity"),
PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP
);
// Do not disable main app icon
// DONT_KILL_APP will not work if we disable the currently enabled alias at runtime
} catch (JSONException ignore) {
// do nothing
}
Expand Down