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

Commit 613a84ec authored by Zhao Wei Liew's avatar Zhao Wei Liew
Browse files

GlobalActions: Inform user of screenshot long-press action

Long-press actions are extremely obscure.
Hiding the partial screenshot feature behind a long-press
action is highly detrimental to its discoverability.

Inform the user of the screenshot long-press action
by displaying a short summary message.

Change-Id: I949bd0ef80a654d6cdf852b7a3138e7379ad36d2
parent e358688e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -36,6 +36,9 @@
    <!-- label for current user in phone options dialog -->
    <string name="global_action_current_user">Current</string>

    <!-- status message in phone options dialog for screenshot action -->
    <string name="global_actions_screenshot_status">Long-press for partial screenshot</string>

    <!-- Restart menu -->
    <!-- Button to restart the phone, within the Restart Options dialog -->
    <string name="reboot_reboot">Restart</string>
+3 −0
Original line number Diff line number Diff line
@@ -66,6 +66,9 @@
    <java-symbol type="string" name="global_action_current_user" />
    <java-symbol type="dimen" name="global_actions_avatar_size" />

    <!-- Screenshot action status message -->
    <java-symbol type="string" name="global_actions_screenshot_status" />

    <!-- Support Samsung docks -->
    <java-symbol type="bool" name="config_forceAnalogCarDock" />
    <java-symbol type="bool" name="config_forceAnalogDeskDock" />
+2 −0
Original line number Diff line number Diff line
@@ -514,6 +514,8 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
        private ScreenshotAction() {
            super(com.android.internal.R.drawable.ic_lock_screenshot,
                    R.string.global_action_screenshot);

            setStatus(mContext.getString(R.string.global_actions_screenshot_status));
        }

        @Override