コード例 #1
0
 public void setSplitActionBar(boolean z) {
   if (this.d != z) {
     if (this.b != null) {
       LayoutParams layoutParams = new LayoutParams(-2, -1);
       ViewGroup viewGroup;
       if (z) {
         this.b.m1681a(getContext().getResources().getDisplayMetrics().widthPixels, true);
         this.b.m1680a(Integer.MAX_VALUE);
         layoutParams.width = -1;
         layoutParams.height = this.f;
         this.a = (ActionMenuView) this.b.m1678a((ViewGroup) this);
         this.a.setBackgroundDrawable(this.f1088p);
         viewGroup = (ViewGroup) this.a.getParent();
         if (viewGroup != null) {
           viewGroup.removeView(this.a);
         }
         this.c.addView(this.a, layoutParams);
       } else {
         this.a = (ActionMenuView) this.b.m1678a((ViewGroup) this);
         this.a.setBackgroundDrawable(null);
         viewGroup = (ViewGroup) this.a.getParent();
         if (viewGroup != null) {
           viewGroup.removeView(this.a);
         }
         addView(this.a, layoutParams);
       }
     }
     super.setSplitActionBar(z);
   }
 }
コード例 #2
0
 public void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   if (this.b != null) {
     this.b.m1692b();
     this.b.m1695d();
   }
 }
コード例 #3
0
 @Override
 public void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   if (mActionMenuPresenter != null) {
     mActionMenuPresenter.hideOverflowMenu();
     mActionMenuPresenter.hideSubMenus();
   }
 }
コード例 #4
0
 @Override
 public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
   if (Build.VERSION.SDK_INT >= 14) {
     if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) {
       // Action mode started
       event.setSource(this);
       event.setClassName(getClass().getName());
       event.setPackageName(getContext().getPackageName());
       event.setContentDescription(mTitle);
     } else {
       super.onInitializeAccessibilityEvent(event);
     }
   }
 }
コード例 #5
0
 public /* bridge */ /* synthetic */ void m1904c() {
   super.m1896c();
 }
コード例 #6
0
 public /* bridge */ /* synthetic */ void setVisibility(int i) {
   super.setVisibility(i);
 }
コード例 #7
0
 public /* bridge */ /* synthetic */ void setSplitWhenNarrow(boolean z) {
   super.setSplitWhenNarrow(z);
 }
コード例 #8
0
 public /* bridge */ /* synthetic */ void setSplitView(ActionBarContainer actionBarContainer) {
   super.setSplitView(actionBarContainer);
 }
コード例 #9
0
 public /* bridge */ /* synthetic */ void m1908g() {
   super.m1900g();
 }