mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Cannot scroll vertical anymore
This commit is contained in:
@@ -834,8 +834,13 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
return super.shouldUpRecreateTask(targetIntent);
|
||||
}
|
||||
|
||||
public boolean abShowing = true;
|
||||
public ValueAnimator abAnimator = null;
|
||||
|
||||
public boolean isActionBarShown() {
|
||||
return abShowing;
|
||||
}
|
||||
|
||||
public void showActionBar(boolean show) {
|
||||
ViewGroup abv = findViewById(R.id.action_bar);
|
||||
if (abv == null) {
|
||||
@@ -847,6 +852,10 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
else
|
||||
ab.hide();
|
||||
} else {
|
||||
if (abShowing == show)
|
||||
return;
|
||||
abShowing = show;
|
||||
|
||||
int height = Helper.getActionBarHeight(this);
|
||||
int current = abv.getLayoutParams().height;
|
||||
int target = (show ? height : 0);
|
||||
|
||||
Reference in New Issue
Block a user