diff options
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/ui/AppsListFragment.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/ui/AppsListFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/ui/AppsListFragment.java index 26c56c69a..976ce20d6 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/ui/AppsListFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/ui/AppsListFragment.java @@ -22,6 +22,7 @@ import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; +import android.content.res.Resources; import android.database.Cursor; import android.database.CursorJoiner; import android.database.MatrixCursor; @@ -207,7 +208,7 @@ public class AppsListFragment extends ListFragment implements null, isInstalled(packageName), 1, // registered! - 0 // icon is retrieved later + R.drawable.ic_launcher // icon is retrieved later }); break; } @@ -229,7 +230,7 @@ public class AppsListFragment extends ListFragment implements name, isInstalled(packageName), 1, // registered! - 0 // icon is retrieved later + R.drawable.ic_launcher // icon is retrieved later }); break; } @@ -336,7 +337,11 @@ public class AppsListFragment extends ListFragment implements text.setText(packageName); } else { text.setText(name); - icon.setImageDrawable(getResources().getDrawable(iconResName)); + try { + icon.setImageDrawable(getResources().getDrawable(iconResName)); + } catch (Resources.NotFoundException e1) { + // silently fail + } } } |