diff options
author | Siva Velusamy <vsiva@google.com> | 2015-05-08 01:51:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-08 01:51:19 +0000 |
commit | 1f8619974806d1c461b57ab232c50f1845d4d433 (patch) | |
tree | 1e556889ed84f9882c147262fd4fe418c9f8194b /packages | |
parent | 52156a325e1d5c764b6ba54a7098d6f4b6068e61 (diff) | |
parent | 94a6d15ede149189bba9e5f474ed853c98230e75 (diff) | |
download | frameworks_base-1f8619974806d1c461b57ab232c50f1845d4d433.zip frameworks_base-1f8619974806d1c461b57ab232c50f1845d4d433.tar.gz frameworks_base-1f8619974806d1c461b57ab232c50f1845d4d433.tar.bz2 |
Merge "Use new hierarchy viewer protocol in all View subclasses" into mnc-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java index b5eda90..1c4b963 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java @@ -16,6 +16,7 @@ package com.android.keyguard; +import android.annotation.NonNull; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Rect; @@ -25,12 +26,15 @@ import android.view.MotionEvent; import android.view.View; import android.view.ViewDebug; import android.view.ViewGroup; +import android.view.ViewHierarchyEncoder; import android.view.WindowManager; import android.widget.FrameLayout; import android.widget.ViewFlipper; import com.android.internal.widget.LockPatternUtils; +import java.lang.Override; + /** * Subclass of the current view flipper that allows us to overload dispatchTouchEvent() so * we can emulate {@link WindowManager.LayoutParams#FLAG_SLIPPERY} within a view hierarchy. @@ -268,5 +272,14 @@ public class KeyguardSecurityViewFlipper extends ViewFlipper implements Keyguard R.styleable.KeyguardSecurityViewFlipper_Layout_layout_maxHeight, 0); a.recycle(); } + + /** @hide */ + @Override + protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { + super.encodeProperties(encoder); + + encoder.addProperty("layout:maxWidth", maxWidth); + encoder.addProperty("layout:maxHeight", maxHeight); + } } } |