mirror of
https://github.com/Collinux/minimalist-launcher.git
synced 2024-07-14 15:50:22 +03:00
Fix for crash that occured when the package list did not update
This commit is contained in:
parent
0ee860030a
commit
850bc69a34
@ -50,8 +50,8 @@ public class MainActivity extends Activity {
|
||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||
try {
|
||||
startActivity(packageManager.getLaunchIntentForPackage(packageNames.get(position)));
|
||||
} catch (ActivityNotFoundException e) {
|
||||
fetchAppList(); // application was uninstalled so update the app list
|
||||
} catch (Exception e) {
|
||||
fetchAppList();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user