Skip to content
Snippets Groups Projects
Unverified Commit 5a67b220 authored by SpiritCroc's avatar SpiritCroc Committed by Hưng Phan
Browse files

Slim recents app sidebar: Fix sometimes showing icons behing status bar

Change-Id: I0ecb992156ee3a5ca52a4df4af72c03a6c45700f
parent 96a94ddf
Branches eleven
No related tags found
No related merge requests found
......@@ -460,8 +460,11 @@ public class AppSidebar extends FrameLayout {
private boolean systemUiVisibilityChanged(int visibility) {
if (mSystemUiVisibility != visibility) {
mSystemUiVisibility = visibility;
// Only return true if this affects our layout
if (getVisibleHeight(null) != mVisibleHeight) {
return true;
} else {
// Check if display height changed, which also requires a layout update
Rect r = new Rect();
if (getVisibleHeight(r) != mVisibleHeight) {
return true;
}
}
......@@ -487,8 +490,8 @@ public class AppSidebar extends FrameLayout {
// Layout items
Rect r = new Rect();
int windowHeight = getVisibleHeight(r);
int statusBarHeight = r.top;
final int windowHeight = getVisibleHeight(r);
final int statusBarHeight = r.top;
if (mScrollView != null)
removeView(mScrollView);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment