diff options
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 6 | ||||
-rw-r--r-- | src/com/android/launcher3/Utilities.java | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index e309c8556..aeded7c3b 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2784,8 +2784,10 @@ public class Launcher extends Activity */ public void onClickSettingsButton(View v) { if (LOGD) Log.d(TAG, "onClickSettingsButton"); - startActivity(new Intent(Utilities.ACTION_APPLICATION_PREFERENCES) - .setPackage(getPackageName())); + Intent intent = new Intent(Intent.ACTION_APPLICATION_PREFERENCES) + .setPackage(getPackageName()); + intent.setSourceBounds(getViewBounds(v)); + startActivity(intent, getActivityLaunchOptions(v)); } public View.OnTouchListener getHapticFeedbackTouchListener() { diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 50f715634..2988fb912 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -183,10 +183,6 @@ public final class Utilities { } } - // TODO: Use Intent.ACTION_APPLICATION_PREFERENCES when N SDK is available. - public static final String ACTION_APPLICATION_PREFERENCES - = "android.intent.action.APPLICATION_PREFERENCES"; - public static Bitmap createIconBitmap(Cursor c, int iconIndex, Context context) { byte[] data = c.getBlob(iconIndex); try { |