summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/compat
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-12-18 11:20:41 -0800
committerandroid-build-merger <android-build-merger@google.com>2015-12-18 11:20:41 -0800
commit13f682f74ec46bd07358d51a52e064fd6221f0fb (patch)
tree59648425756646c068a1b0c5be253a6d8854f602 /src/com/android/launcher3/compat
parent619c21e87b798736ec6140042a8af0de764f45d4 (diff)
parentb740f59c7d572d54402e3a74fb2a23c0f1b1af48 (diff)
downloadandroid_packages_apps_Trebuchet-13f682f74ec46bd07358d51a52e064fd6221f0fb.tar.gz
android_packages_apps_Trebuchet-13f682f74ec46bd07358d51a52e064fd6221f0fb.tar.bz2
android_packages_apps_Trebuchet-13f682f74ec46bd07358d51a52e064fd6221f0fb.zip
Fixing some invalid checks and cleaning some redundant conditions
am: b740f59c7d * commit 'b740f59c7d572d54402e3a74fb2a23c0f1b1af48': Fixing some invalid checks and cleaning some redundant conditions
Diffstat (limited to 'src/com/android/launcher3/compat')
-rw-r--r--src/com/android/launcher3/compat/AppWidgetManagerCompatVL.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/launcher3/compat/AppWidgetManagerCompatVL.java b/src/com/android/launcher3/compat/AppWidgetManagerCompatVL.java
index 13712d8c7..b3c5cc2a3 100644
--- a/src/com/android/launcher3/compat/AppWidgetManagerCompatVL.java
+++ b/src/com/android/launcher3/compat/AppWidgetManagerCompatVL.java
@@ -90,9 +90,7 @@ class AppWidgetManagerCompatVL extends AppWidgetManagerCompat {
AppWidgetHost host, int requestCode) {
try {
host.startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null);
- } catch (ActivityNotFoundException e) {
- Toast.makeText(activity, R.string.activity_not_found, Toast.LENGTH_SHORT).show();
- } catch (SecurityException e) {
+ } catch (ActivityNotFoundException | SecurityException e) {
Toast.makeText(activity, R.string.activity_not_found, Toast.LENGTH_SHORT).show();
}
}