1 package android
.support
.v7
.a
;
3 import android
.content
.Context
;
4 import android
.content
.res
.Configuration
;
5 import android
.content
.res
.TypedArray
;
6 import android
.os
.Bundle
;
7 import android
.support
.v7
.b
.c
;
8 import android
.support
.v7
.b
.d
;
9 import android
.support
.v7
.b
.f
;
10 import android
.support
.v7
.b
.h
;
11 import android
.support
.v7
.b
.k
;
12 import android
.support
.v7
.c
.a
;
13 import android
.support
.v7
.c
.b
;
14 import android
.support
.v7
.internal
.view
.menu
.ag
;
15 import android
.support
.v7
.internal
.view
.menu
.ah
;
16 import android
.support
.v7
.internal
.view
.menu
.aj
;
17 import android
.support
.v7
.internal
.view
.menu
.o
;
18 import android
.support
.v7
.internal
.view
.menu
.q
;
19 import android
.support
.v7
.internal
.view
.menu
.r
;
20 import android
.support
.v7
.internal
.widget
.ActionBarContainer
;
21 import android
.support
.v7
.internal
.widget
.ActionBarContextView
;
22 import android
.support
.v7
.internal
.widget
.ActionBarView
;
23 import android
.view
.Menu
;
24 import android
.view
.MenuItem
;
25 import android
.view
.View
;
26 import android
.view
.ViewGroup
;
27 import android
.widget
.FrameLayout
;
29 /* access modifiers changed from: package-private */
30 /* compiled from: MyApp */
31 public class j
extends g
implements ag
, r
{
32 private static final int[] d
= {c
.homeAsUpIndicator
};
33 private ActionBarView e
;
38 private CharSequence j
;
50 @Override // android.support.v7.a.g
53 return new r(this.a
, this.a
);
56 @Override // android.support.v7.a.g
57 public void a(Configuration configuration
) {
58 if (this.b
&& this.i
) {
59 ((r
) b()).a(configuration
);
63 @Override // android.support.v7.a.g
71 @Override // android.support.v7.a.g
79 @Override // android.support.v7.a.g
80 public void a(View view
) {
82 ViewGroup viewGroup
= (ViewGroup
) this.a
.findViewById(16908290);
83 viewGroup
.removeAllViews();
84 viewGroup
.addView(view
);
88 @Override // android.support.v7.a.g
89 public void a(int i2
) {
91 ViewGroup viewGroup
= (ViewGroup
) this.a
.findViewById(16908290);
92 viewGroup
.removeAllViews();
93 this.a
.getLayoutInflater().inflate(i2
, viewGroup
);
97 @Override // android.support.v7.a.g
98 public void a(View view
, ViewGroup
.LayoutParams layoutParams
) {
100 ViewGroup viewGroup
= (ViewGroup
) this.a
.findViewById(16908290);
101 viewGroup
.removeAllViews();
102 viewGroup
.addView(view
, layoutParams
);
106 @Override // android.support.v7.a.g
107 public void b(View view
, ViewGroup
.LayoutParams layoutParams
) {
109 ((ViewGroup
) this.a
.findViewById(16908290)).addView(view
, layoutParams
);
113 @Override // android.support.v7.a.g
117 /* access modifiers changed from: package-private */
118 public final void k() {
123 this.a
.a(h
.abc_action_bar_decor_overlay
);
125 this.a
.a(h
.abc_action_bar_decor
);
127 this.e
= (ActionBarView
) this.a
.findViewById(f
.action_bar
);
128 this.e
.setWindowCallback(this.a
);
135 boolean equals
= "splitActionBarWhenNarrow".equals(i());
137 z
= this.a
.getResources().getBoolean(d
.abc_split_action_bar_is_narrow
);
139 TypedArray obtainStyledAttributes
= this.a
.obtainStyledAttributes(k
.ActionBarWindow
);
140 boolean z2
= obtainStyledAttributes
.getBoolean(2, false);
141 obtainStyledAttributes
.recycle();
144 ActionBarContainer actionBarContainer
= (ActionBarContainer
) this.a
.findViewById(f
.split_action_bar
);
145 if (actionBarContainer
!= null) {
146 this.e
.setSplitView(actionBarContainer
);
147 this.e
.setSplitActionBar(z
);
148 this.e
.setSplitWhenNarrow(equals
);
149 ActionBarContextView actionBarContextView
= (ActionBarContextView
) this.a
.findViewById(f
.action_context_bar
);
150 actionBarContextView
.setSplitView(actionBarContainer
);
151 actionBarContextView
.setSplitActionBar(z
);
152 actionBarContextView
.setSplitWhenNarrow(equals
);
155 this.a
.a(h
.abc_simple_decor
);
157 this.a
.findViewById(16908290).setId(-1);
158 this.a
.findViewById(f
.action_bar_activity_content
).setId(16908290);
159 if (this.j
!= null) {
160 this.e
.setWindowTitle(this.j
);
165 this.a
.getWindow().getDecorView().post(new k(this));
169 /* JADX WARNING: Removed duplicated region for block: B:36:0x007e */
170 /* JADX WARNING: Removed duplicated region for block: B:47:0x00a9 */
171 /* JADX WARNING: Removed duplicated region for block: B:48:0x00ab */
172 /* Code decompiled incorrectly, please refer to instructions dump. */
175 // Method dump skipped, instructions count: 209
177 throw new UnsupportedOperationException("Method not decompiled: android.support.v7.a.j.l():void");
180 @Override // android.support.v7.a.g
181 public void a(CharSequence charSequence
) {
182 if (this.e
!= null) {
183 this.e
.setWindowTitle(charSequence
);
185 this.j
= charSequence
;
189 @Override // android.support.v7.a.g
190 public View
b(int i2
) {
191 if (i2
!= 0 || !n()) {
194 return (View
) a(this.a
, this);
197 @Override // android.support.v7.a.g
198 public boolean a(int i2
, Menu menu
) {
200 return this.a
.a(i2
, menu
);
205 @Override // android.support.v7.a.g
206 public boolean a(int i2
, View view
, Menu menu
) {
208 return this.a
.a(i2
, view
, menu
);
213 @Override // android.support.v7.a.g
214 public boolean a(int i2
, MenuItem menuItem
) {
216 menuItem
= aj
.a(menuItem
);
218 return this.a
.a(i2
, menuItem
);
221 @Override // android.support.v7.internal.view.menu.r
222 public boolean a(q qVar
, MenuItem menuItem
) {
223 return this.a
.onMenuItemSelected(0, menuItem
);
226 @Override // android.support.v7.internal.view.menu.r
227 public void a(q qVar
) {
231 @Override // android.support.v7.internal.view.menu.ag
232 public void a(q qVar
, boolean z
) {
235 this.a
.closeOptionsMenu();
241 @Override // android.support.v7.internal.view.menu.ag
242 public boolean b(q qVar
) {
246 @Override // android.support.v7.a.g
249 throw new IllegalArgumentException("ActionMode callback can not be null.");
251 if (this.h
!= null) {
254 l lVar
= new l(this, bVar
);
257 this.h
= rVar
.a(lVar
);
259 if (this.h
!= null) {
265 @Override // android.support.v7.a.g
267 if (this.g
!= null) {
268 Bundle bundle
= new Bundle();
270 if (bundle
.size() > 0) {
277 if (this.e
!= null) {
283 private void b(q qVar
, boolean z
) {
284 if (this.e
== null || !this.e
.e()) {
286 } else if (this.e
.d() && z
) {
288 } else if (this.e
.getVisibility() == 0) {
293 private ah
a(Context context
, ag agVar
) {
294 if (this.g
== null) {
297 if (this.f
== null) {
298 TypedArray obtainStyledAttributes
= context
.obtainStyledAttributes(k
.Theme
);
299 int resourceId
= obtainStyledAttributes
.getResourceId(4, android
.support
.v7
.b
.j
.Theme_AppCompat_CompactMenu
);
300 obtainStyledAttributes
.recycle();
301 this.f
= new o(h
.abc_list_menu_item_layout
, resourceId
);
307 return this.f
.a(new FrameLayout(context
));
310 @Override // android.support.v7.a.g
312 if (this.h
!= null) {
315 } else if (this.e
== null || !this.e
.k()) {
323 private boolean m() {
329 private boolean n() {
333 if (this.g
== null || this.o
) {
334 if (this.g
== null && (!m() || this.g
== null)) {
337 if (this.e
!= null) {
338 this.e
.a(this.g
, this);
341 if (!this.a
.a(0, this.g
)) {
343 if (this.e
!= null) {
344 this.e
.a(null, this);
351 if (this.p
!= null) {
355 if (!this.a
.a(0, (View
) null, this.g
)) {
356 if (this.e
!= null) {
357 this.e
.a(null, this);