Skip to content

Commit

Permalink
[Catalog][TopAppBar] Remove edge-to-edge to top app bar demos due to …
Browse files Browse the repository at this point in the history
…glitches in ActionBar demo

Automated g4 rollback of changelist 560774617

PiperOrigin-RevId: 561719046
  • Loading branch information
leticiarossi committed Aug 31, 2023
1 parent 4e995d1 commit c40e468
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -31,7 +31,6 @@
import androidx.annotation.StringRes;
import io.material.catalog.feature.DemoActivity;
import io.material.catalog.feature.DemoUtils;
import io.material.catalog.windowpreferences.WindowPreferencesManager;

/** A base activity for the Top App Bar Action Bar demos for the Catalog app. */
public abstract class BaseTopAppBarActionBarDemoActivity extends DemoActivity {
Expand All @@ -45,8 +44,6 @@ protected void onCreate(@Nullable Bundle bundle) {

getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setSubtitle(R.string.cat_topappbar_action_bar_subtitle);

new WindowPreferencesManager(this).applyEdgeToEdgePreference(getWindow());
}

@Override
Expand Down Expand Up @@ -123,6 +120,7 @@ protected boolean shouldSetUpContainerTransform() {
return false;
}

// Disable edge to edge due to that causing glitches with the status bar during action mode.
@Override
protected boolean shouldApplyEdgeToEdgePreference() {
return false;
Expand Down

0 comments on commit c40e468

Please sign in to comment.