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

Commit 160ad6b2 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Remove keyRepeat from KeyButtonView

This attribute is not used by anyone in Android master. It therefore
always defaults to "true".

There are some potential usages in the "experimental" project, but it
will be up to the owners of those copies to clean this up.

Bug: 128553584
Test: presubmit
Test: search for "keyRepeat" in Android via code search and examine
every usage (166 results). Also grep the local tree for "keyRepeat"
inside the frameworks/base and the vendor/unbundled_google projects.

Change-Id: If2bc354ff2a2259874dc19a973e1e0152d9fd9c3
parent 09eb96c4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -18,8 +18,6 @@
    <declare-styleable name="KeyButtonView">
        <!-- key code to send when pressed; if absent or 0, no key is sent -->
        <attr name="keyCode" format="integer" />
        <!-- does this button generate longpress / repeat events? -->
        <attr name="keyRepeat" format="boolean" />
        <!-- Should this button play sound effects, default true -->
        <attr name="playSound" format="boolean" />
        <attr name="android:contentDescription" />
+0 −1
Original line number Diff line number Diff line
@@ -104,7 +104,6 @@ public class KeyButtonView extends ImageView implements ButtonInterface {

        mCode = a.getInteger(R.styleable.KeyButtonView_keyCode, KEYCODE_UNKNOWN);

        mSupportsLongpress = a.getBoolean(R.styleable.KeyButtonView_keyRepeat, true);
        mPlaySounds = a.getBoolean(R.styleable.KeyButtonView_playSound, true);

        TypedValue value = new TypedValue();