Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3a09f97 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Starting the settings activity with same animation as wallpaper (and widgets tray)

Change-Id: I7744d50c9762200eb2ffea37d8435c9bc221c526
parent c760da56
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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() {
+0 −4
Original line number Diff line number Diff line
@@ -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 {