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

Commit 2bff4902 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Update hard keyboard setup notification.

Starting from Android N, Settings.ACTION_HARD_KEYBOARD_SETTINGS is
available for navigating users to hardware keyboard settings.  We should
use this for keyboard layout notification.

This CL also updates the notification title and message based on
feedback from UX writing team.

Bug: 27795350
Change-Id: Ic93075f933d47486644092c469d7a3517eb2e541
parent 7c101a40
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2953,10 +2953,11 @@
    <!-- Title of the physical keyboard category in the input method selector [CHAR LIMIT=30] -->
    <string name="hardware">Show virtual keyboard</string>

    <!-- Title of the notification to prompt the user to select a keyboard layout. -->
    <string name="select_keyboard_layout_notification_title">Select keyboard layout</string>
    <!-- Message of the notification to prompt the user to select a keyboard layout. -->
    <string name="select_keyboard_layout_notification_message">Touch to select a keyboard layout.</string>
    <!-- Title of the notification to prompt the user to configure physical keyboard settings. -->
    <string name="select_keyboard_layout_notification_title">Configure physical keyboard</string>
    <!-- Message of the notification to prompt the user to configure physical keyboard settings
         where the user can associate language with physical keyboard layout. -->
    <string name="select_keyboard_layout_notification_message">Tap to select language and layout</string>

    <string name="fast_scroll_alphabet">\u0020ABCDEFGHIJKLMNOPQRSTUVWXYZ</string>
    <string name="fast_scroll_numeric_alphabet">\u00200123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ</string>
+1 −1
Original line number Diff line number Diff line
@@ -948,7 +948,7 @@ public class InputManagerService extends IInputManager.Stub
    // Must be called on handler.
    private void showMissingKeyboardLayoutNotification(InputDevice device) {
        if (!mKeyboardLayoutNotificationShown) {
            final Intent intent = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS);
            final Intent intent = new Intent(Settings.ACTION_HARD_KEYBOARD_SETTINGS);
            if (device != null) {
                intent.putExtra(Settings.EXTRA_INPUT_DEVICE_IDENTIFIER, device.getIdentifier());
            }