[app] Disable liftOnScroll for app list (#118)

This commit is contained in:
tehcneko 2021-02-12 00:34:08 +08:00 committed by GitHub
parent c3e7988238
commit d9362b921e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ public class AppListActivity extends BaseActivity {
setContentView(binding.getRoot());
setSupportActionBar(binding.toolbar);
binding.toolbar.setNavigationOnClickListener(view -> onBackPressed());
binding.appBar.setLiftOnScroll(false);
ActionBar bar = getSupportActionBar();
assert bar != null;
bar.setDisplayHomeAsUpEnabled(true);

View File

@ -9,6 +9,7 @@
app:fitSystemWindowsInsets="top|start|end">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="?actionBarTheme"