summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2014-05-30 17:49:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-30 17:49:19 +0000
commita24114e7b1418ec911b6328656f36f9598482d87 (patch)
tree907e4b80301f43231401764fc19fa54cdffa83ff /core/java
parent303170e5c29648872517f2eefda97147411c2074 (diff)
parent76d1466dfcdfbeb80dac64b9ec210c61b0b08574 (diff)
downloadframeworks_base-a24114e7b1418ec911b6328656f36f9598482d87.zip
frameworks_base-a24114e7b1418ec911b6328656f36f9598482d87.tar.gz
frameworks_base-a24114e7b1418ec911b6328656f36f9598482d87.tar.bz2
Merge "Fix bad casts in action bars" into lmp-preview-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/com/android/internal/app/WindowDecorActionBar.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/com/android/internal/app/WindowDecorActionBar.java b/core/java/com/android/internal/app/WindowDecorActionBar.java
index 5c7a4e6..c0b5b97 100644
--- a/core/java/com/android/internal/app/WindowDecorActionBar.java
+++ b/core/java/com/android/internal/app/WindowDecorActionBar.java
@@ -588,7 +588,7 @@ public class WindowDecorActionBar extends ActionBar implements
return;
}
- final FragmentTransaction trans = ((View) mDecorToolbar).isInEditMode() ? null :
+ final FragmentTransaction trans = mDecorToolbar.getViewGroup().isInEditMode() ? null :
mActivity.getFragmentManager().beginTransaction().disallowAddToBackStack();
if (mSelectedTab == tab) {
@@ -847,7 +847,7 @@ public class WindowDecorActionBar extends ActionBar implements
mDecorToolbar.animateToVisibility(toActionMode ? View.GONE : View.VISIBLE);
mContextView.animateToVisibility(toActionMode ? View.VISIBLE : View.GONE);
if (mTabScrollView != null && !mDecorToolbar.hasEmbeddedTabs() &&
- isCollapsed((View) mDecorToolbar)) {
+ isCollapsed(mDecorToolbar.getViewGroup())) {
mTabScrollView.animateToVisibility(toActionMode ? View.GONE : View.VISIBLE);
}
}
@@ -959,7 +959,7 @@ public class WindowDecorActionBar extends ActionBar implements
// Clear out the context mode views after the animation finishes
mContextView.closeMode();
- ((View) mDecorToolbar).sendAccessibilityEvent(
+ mDecorToolbar.getViewGroup().sendAccessibilityEvent(
AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
mOverlayLayout.setHideOnContentScrollEnabled(mHideOnContentScroll);