mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Bug fix
Signed-off-by: Joris Bodin <joris.bodin@infomaniak.com>
This commit is contained in:
parent
84971d876e
commit
2a0b1ea5d2
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|||
|
||||
@SuppressLint("PrivateResource")
|
||||
private void showHomeSearchToolbar(boolean isShow) {
|
||||
if (isShow && mDefaultToolbar.getVisibility() == View.VISIBLE) {
|
||||
if (isShow) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
mAppBar.setStateListAnimator(AnimatorInflater.loadStateListAnimator(mAppBar.getContext(),
|
||||
R.animator.appbar_elevation_off));
|
||||
|
@ -158,7 +158,7 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|||
mDefaultToolbar.setVisibility(View.GONE);
|
||||
mHomeSearchToolbar.setVisibility(View.VISIBLE);
|
||||
ThemeUtils.colorStatusBar(this, ContextCompat.getColor(this, R.color.bg_default));
|
||||
} else if (mDefaultToolbar.getVisibility() == View.GONE) {
|
||||
} else {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
mAppBar.setStateListAnimator(AnimatorInflater.loadStateListAnimator(mAppBar.getContext(),
|
||||
R.animator.appbar_elevation_on));
|
||||
|
|
Loading…
Reference in a new issue