diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-01-19 10:27:54 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-01-19 13:54:31 -0800 |
commit | 782f0c9a896db58aeaa60d15f291831b8d7b4c93 (patch) | |
tree | b8d8b2da1ae765811dedd9a9ec55d3c27898d727 /src/com/android/launcher3/Utilities.java | |
parent | 278359539c02ca160caf1df54ce96053a2a2ef59 (diff) | |
download | android_packages_apps_Trebuchet-782f0c9a896db58aeaa60d15f291831b8d7b4c93.tar.gz android_packages_apps_Trebuchet-782f0c9a896db58aeaa60d15f291831b8d7b4c93.tar.bz2 android_packages_apps_Trebuchet-782f0c9a896db58aeaa60d15f291831b8d7b4c93.zip |
Adding support for new APIs in O related to configurable shortcuts
> Config activities can now return PinItemRequest which can be used to pin
deep shortcuts
Bug: 33584624
Change-Id: Ic0df436bd79e069615b9d60d24eb7594b824b2da
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r-- | src/com/android/launcher3/Utilities.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 8ad0144c3..267cb2aaa 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -16,9 +16,7 @@ package com.android.launcher3; -import android.app.Activity; import android.app.WallpaperManager; -import android.content.ActivityNotFoundException; import android.content.ComponentName; import android.content.Context; import android.content.Intent; @@ -53,7 +51,6 @@ import android.util.TypedValue; import android.view.View; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityManager; -import android.widget.Toast; import com.android.launcher3.config.ProviderConfig; @@ -262,20 +259,6 @@ public final class Utilities { return scale; } - public static void startActivityForResultSafely( - Activity activity, Intent intent, int requestCode) { - try { - activity.startActivityForResult(intent, requestCode); - } catch (ActivityNotFoundException e) { - Toast.makeText(activity, R.string.activity_not_found, Toast.LENGTH_SHORT).show(); - } catch (SecurityException e) { - Toast.makeText(activity, R.string.activity_not_found, Toast.LENGTH_SHORT).show(); - Log.e(TAG, "Launcher does not have the permission to launch " + intent + - ". Make sure to create a MAIN intent-filter for the corresponding activity " + - "or use the exported attribute for this activity.", e); - } - } - static boolean isSystemApp(Context context, Intent intent) { PackageManager pm = context.getPackageManager(); ComponentName cn = intent.getComponent(); |