diff options
author | Dan Sandler <dsandler@android.com> | 2014-12-04 16:07:30 -0500 |
---|---|---|
committer | Dan Sandler <dsandler@android.com> | 2014-12-04 16:07:30 -0500 |
commit | f5ba6bdafa33720fa6ee692954ac9ab364fdedf5 (patch) | |
tree | 0202ddd91b6f40e1f5600f45d1eece2734e51cbf /packages/SystemUI/src/com/android/systemui/egg | |
parent | d23f8b44d575dcdc00965aae5fffd97f0336df43 (diff) | |
download | frameworks_base-f5ba6bdafa33720fa6ee692954ac9ab364fdedf5.zip frameworks_base-f5ba6bdafa33720fa6ee692954ac9ab364fdedf5.tar.gz frameworks_base-f5ba6bdafa33720fa6ee692954ac9ab364fdedf5.tar.bz2 |
RTL support for Lollipop Land.
Since the game randomly flips horizontally anyway, forcing
the game view to LTR fixes the coordinate math without
affecting gameplay. (The score view did need to move to
start instead of left, however.)
Bug: 18628150
Change-Id: I7cf8bd1e2b9a2316d30e17a9251173598c687c2b
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/egg')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/egg/LLand.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/egg/LLand.java b/packages/SystemUI/src/com/android/systemui/egg/LLand.java index 5de09a3..fa257b1 100644 --- a/packages/SystemUI/src/com/android/systemui/egg/LLand.java +++ b/packages/SystemUI/src/com/android/systemui/egg/LLand.java @@ -178,6 +178,9 @@ public class LLand extends FrameLayout { setFocusable(true); PARAMS = new Params(getResources()); mTimeOfDay = irand(0, SKIES.length); + + // we assume everything will be laid out left|top + setLayoutDirection(LAYOUT_DIRECTION_LTR); } @Override |