Skip to content

Commit

Permalink
[Catalog][TopAppBar] Applied edge-to-edge to top app bar demos
Browse files Browse the repository at this point in the history
Resolves #3548
Resolves #3547

GIT_ORIGIN_REV_ID=22425cde55ee6e99c2b679c9ecdca8bba745d4b9
PiperOrigin-RevId: 560774617
  • Loading branch information
manabu-nakamura authored and leticiarossi committed Aug 28, 2023
1 parent de27132 commit aa5b5bc
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -31,6 +31,7 @@
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 @@ -44,6 +45,8 @@ 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

0 comments on commit aa5b5bc

Please sign in to comment.