mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Launch settings with proper animation
This commit is contained in:
@@ -191,9 +191,10 @@ public class OptionsPopupView extends ArrowPopup
|
||||
public static boolean startSettings(View view) {
|
||||
TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "start: startSettings");
|
||||
Launcher launcher = Launcher.getLauncher(view.getContext());
|
||||
launcher.startActivity(new Intent(Intent.ACTION_APPLICATION_PREFERENCES)
|
||||
Intent intent = new Intent(Intent.ACTION_APPLICATION_PREFERENCES)
|
||||
.setPackage(launcher.getPackageName())
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
launcher.startActivitySafely(view, intent, dummyInfo(intent), null);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user