Fix for crash that occured when the package list did not update

This commit is contained in:
Collinux 2018-04-19 11:32:15 -04:00
parent 0ee860030a
commit 850bc69a34

View File

@ -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();
}
}
});