Skip to content

Commit c40e468

Browse files
committed
[Catalog][TopAppBar] Remove edge-to-edge to top app bar demos due to glitches in ActionBar demo
Automated g4 rollback of changelist 560774617 PiperOrigin-RevId: 561719046
1 parent 4e995d1 commit c40e468

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

catalog/java/io/material/catalog/topappbar/BaseTopAppBarActionBarDemoActivity.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import androidx.annotation.StringRes;
3232
import io.material.catalog.feature.DemoActivity;
3333
import 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. */
3736
public 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;

0 commit comments

Comments
 (0)