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

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

am a79433cb: am ecd43cca: Merge "Initialize Keyboard.Key attributes from...

am a79433cb: am ecd43cca: Merge "Initialize Keyboard.Key attributes from parent Keyboard.Row" into gingerbread

Merge commit 'a79433cb'

* commit 'a79433cb':
  Initialize Keyboard.Key attributes from parent Keyboard.Row
parents f81174b2 a79433cb
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -307,6 +307,10 @@ public class Keyboard {
        /** Create an empty key with no attributes. */
        public Key(Row parent) {
            keyboard = parent.parent;
            height = parent.defaultHeight;
            width = parent.defaultWidth;
            gap = parent.defaultHorizontalGap;
            edgeFlags = parent.rowEdgeFlags;
        }
        
        /** Create a key with the given top-left coordinate and extract its attributes from
@@ -587,9 +591,6 @@ public class Keyboard {
            final Key key = new Key(row);
            key.x = x;
            key.y = y;
            key.width = mDefaultWidth;
            key.height = mDefaultHeight;
            key.gap = mDefaultHorizontalGap;
            key.label = String.valueOf(c);
            key.codes = new int[] { c };
            column++;