Skip to content

Commit 850bc69

Browse files
committed
Fix for crash that occured when the package list did not update
1 parent 0ee8600 commit 850bc69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: MinimalistLauncher/src/main/java/launcher/minimalist/com/MainActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ protected void onCreate(Bundle savedInstanceState) {
5050
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
5151
try {
5252
startActivity(packageManager.getLaunchIntentForPackage(packageNames.get(position)));
53-
} catch (ActivityNotFoundException e) {
54-
fetchAppList(); // application was uninstalled so update the app list
53+
} catch (Exception e) {
54+
fetchAppList();
5555
}
5656
}
5757
});

0 commit comments

Comments
 (0)