mirror of
https://github.com/Collinux/minimalist-launcher.git
synced 2024-10-26 11:55:31 +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) {
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||||
try {
|
try {
|
||||||
startActivity(packageManager.getLaunchIntentForPackage(packageNames.get(position)));
|
startActivity(packageManager.getLaunchIntentForPackage(packageNames.get(position)));
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (Exception e) {
|
||||||
fetchAppList(); // application was uninstalled so update the app list
|
fetchAppList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user