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

Commit 301715f8 authored by Jason Chang's avatar Jason Chang Committed by Android (Google) Code Review
Browse files

Merge "(1) Define a new intent action ACTION_ONE_HANDED_SETTINGS in Settings...

Merge "(1) Define a new intent action ACTION_ONE_HANDED_SETTINGS in Settings to support long-pressed action for One-handed mode tile"
parents ab30d8d8 3a7e2801
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -268,6 +268,16 @@ public final class Settings {
    /** @hide */
    public static final String EXTRA_NETWORK_TEMPLATE = "network_template";
    /**
     * Activity Action: Show One-handed mode Settings page.
     * <p>
     * Input: Nothing
     * <p>
     * Output: Nothing
     * @hide
     */
    public static final String ACTION_ONE_HANDED_SETTINGS =
            "android.settings.action.ONE_HANDED_SETTINGS";
    /**
     * The return values for {@link Settings.Config#set}
     * @hide
+1 −2
Original line number Diff line number Diff line
@@ -105,8 +105,7 @@ public class OneHandedModeTile extends QSTileImpl<BooleanState> {

    @Override
    public Intent getLongClickIntent() {
        // TODO(b/201743873) define new intent action ACTION_ONE_HANDED_SETTINGS in Settings.
        return null;
        return new Intent(Settings.ACTION_ONE_HANDED_SETTINGS);
    }

    @Override