Fixes #4079 Menu item are not visible (#4145)

* Revert custom stylings of toolbar

* Enable back button on toolbar
This commit is contained in:
neslihanturan 2021-01-02 16:06:08 +03:00 committed by GitHub
parent 86c571ceee
commit b06f875812
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -69,6 +69,7 @@ public class SearchActivity extends BaseActivity
ButterKnife.bind(this);
setTitle(getString(R.string.title_activity_search));
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
toolbar.setNavigationOnClickListener(v->onBackPressed());
supportFragmentManager = getSupportFragmentManager();
setSearchHistoryFragment();

View file

@ -23,15 +23,14 @@
android:id="@+id/toolbar_search"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimaryDark"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:navigationIcon="@drawable/ic_arrow_back_white">
app:titleTextColor="?attr/toolbar_text_color"
app:subtitleTextColor="?attr/toolbar_text_color"
>
<SearchView
android:id="@+id/searchBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
app:theme="@style/WhiteSearchBarTheme"
android:queryBackground="@android:color/transparent"
android:searchIcon="@null"
android:paddingLeft="-16dp"