File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
catalog/java/io/material/catalog/topappbar Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 3131import androidx .annotation .StringRes ;
3232import io .material .catalog .feature .DemoActivity ;
3333import io .material .catalog .feature .DemoUtils ;
34- import io .material .catalog .windowpreferences .WindowPreferencesManager ;
3534
3635/** A base activity for the Top App Bar Action Bar demos for the Catalog app. */
3736public abstract class BaseTopAppBarActionBarDemoActivity extends DemoActivity {
@@ -45,8 +44,6 @@ protected void onCreate(@Nullable Bundle bundle) {
4544
4645 getSupportActionBar ().setDisplayHomeAsUpEnabled (true );
4746 getSupportActionBar ().setSubtitle (R .string .cat_topappbar_action_bar_subtitle );
48-
49- new WindowPreferencesManager (this ).applyEdgeToEdgePreference (getWindow ());
5047 }
5148
5249 @ Override
@@ -123,6 +120,7 @@ protected boolean shouldSetUpContainerTransform() {
123120 return false ;
124121 }
125122
123+ // Disable edge to edge due to that causing glitches with the status bar during action mode.
126124 @ Override
127125 protected boolean shouldApplyEdgeToEdgePreference () {
128126 return false ;
You can’t perform that action at this time.
0 commit comments