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

Commit ec7d6752 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android Git Automerger
Browse files

am 5a9c9649: Removes "customAction" value from Key.backgroundType attribute

* commit '5a9c9649':
  Removes "customAction" value from Key.backgroundType attribute
parents 2a7a5740 5a9c9649
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -15,11 +15,6 @@
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- Custom label action keys. -->
    <item android:state_active="true" android:state_checked="true" android:state_pressed="true"
          android:drawable="@color/key_background_pressed_lxx_dark" />
    <item android:state_active="true" android:state_checked="true"
          android:drawable="@color/key_background_lxx_dark" />
    <!-- Action keys. -->
    <item android:state_active="true" android:state_pressed="true"
          android:drawable="@drawable/btn_keyboard_key_active_pressed_lxx_dark" />
+0 −5
Original line number Diff line number Diff line
@@ -15,11 +15,6 @@
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- Custom label action keys. -->
    <item android:state_active="true" android:state_checked="true" android:state_pressed="true"
          android:drawable="@color/key_background_pressed_lxx_light" />
    <item android:state_active="true" android:state_checked="true"
          android:drawable="@color/key_background_lxx_light" />
    <!-- Action keys. -->
    <item android:state_active="true" android:state_pressed="true"
          android:drawable="@drawable/btn_keyboard_key_active_pressed_lxx_light" />
+0 −1
Original line number Diff line number Diff line
@@ -284,7 +284,6 @@
            <enum name="stickyOff" value="3" />
            <enum name="stickyOn" value="4" />
            <enum name="action" value="5" />
            <enum name="customAction" value="6" />
        </attr>
        <!-- The key action flags. -->
        <attr name="keyActionFlags" format="integer">
+0 −4
Original line number Diff line number Diff line
@@ -139,7 +139,6 @@ public class Key implements Comparable<Key> {
    public static final int BACKGROUND_TYPE_STICKY_OFF = 3;
    public static final int BACKGROUND_TYPE_STICKY_ON = 4;
    public static final int BACKGROUND_TYPE_ACTION = 5;
    public static final int BACKGROUND_TYPE_CUSTOM_ACTION = 6;

    private final int mActionFlags;
    private static final int ACTION_FLAGS_IS_REPEATABLE = 0x01;
@@ -506,7 +505,6 @@ public class Key implements Comparable<Key> {
        case BACKGROUND_TYPE_STICKY_OFF: return "stickyOff";
        case BACKGROUND_TYPE_STICKY_ON: return "stickyOn";
        case BACKGROUND_TYPE_ACTION: return "action";
        case BACKGROUND_TYPE_CUSTOM_ACTION: return "customAction";
        default: return null;
        }
    }
@@ -873,8 +871,6 @@ public class Key implements Comparable<Key> {
            new KeyBackgroundState(android.R.attr.state_checkable, android.R.attr.state_checked),
            // 5: BACKGROUND_TYPE_ACTION
            new KeyBackgroundState(android.R.attr.state_active),
            // 6: BACKGROUND_TYPE_CUSTOM_ACTION
            new KeyBackgroundState(android.R.attr.state_active, android.R.attr.state_checked)
        };
    }