summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/ActionBar.java
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2015-05-05 15:07:00 -0700
committerSiva Velusamy <vsiva@google.com>2015-05-07 18:44:21 -0700
commit94a6d15ede149189bba9e5f474ed853c98230e75 (patch)
treeedc5a5211a7b69e091a13ddc3c60dcf88d9a5ea6 /core/java/android/app/ActionBar.java
parent0d857b9028f2702ce439e13feccde8182d40e1e5 (diff)
downloadframeworks_base-94a6d15ede149189bba9e5f474ed853c98230e75.zip
frameworks_base-94a6d15ede149189bba9e5f474ed853c98230e75.tar.gz
frameworks_base-94a6d15ede149189bba9e5f474ed853c98230e75.tar.bz2
Use new hierarchy viewer protocol in all View subclasses
A previous CL introduced a new way of encoding view properties for use by heirarchy viewer. This CL updates all views using the old @ExportedProperty annotation to use this new method. The older mechanism will be removed in a subsequent CL. Change-Id: I6cc23b90cd9da1c6ce89b4caffe54874db203452
Diffstat (limited to 'core/java/android/app/ActionBar.java')
-rw-r--r--core/java/android/app/ActionBar.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/app/ActionBar.java b/core/java/android/app/ActionBar.java
index 94e3b66..4d34349 100644
--- a/core/java/android/app/ActionBar.java
+++ b/core/java/android/app/ActionBar.java
@@ -33,6 +33,7 @@ import android.view.KeyEvent;
import android.view.View;
import android.view.ViewDebug;
import android.view.ViewGroup;
+import android.view.ViewHierarchyEncoder;
import android.view.Window;
import android.widget.SpinnerAdapter;
import java.lang.annotation.Retention;
@@ -1373,5 +1374,13 @@ public abstract class ActionBar {
* version of the SDK an app can end up statically linking to the new MarginLayoutParams
* overload, causing a crash when running on older platform versions with no other changes.
*/
+
+ /** @hide */
+ @Override
+ protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) {
+ super.encodeProperties(encoder);
+
+ encoder.addProperty("gravity", gravity);
+ }
}
}