Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec625226 authored by Tony Wickham's avatar Tony Wickham
Browse files

Set status bar icons to dark at correct all apps progress

Bug: 79866102
Change-Id: I8c97896319406c8360a2f60d213868ad59dafe19
parent 61745e17
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -128,7 +128,8 @@ public class AllAppsTransitionController implements StateHandler, OnDeviceProfil

        // Use a light system UI (dark icons) if all apps is behind at least half of the
        // status bar.
        boolean forceChange = shiftCurrent <= mShiftRange / 4;
        boolean forceChange = shiftCurrent - mScrimView.getDragHandleSize()
                <= mLauncher.getDeviceProfile().getInsets().top / 2;
        if (forceChange) {
            mLauncher.getSystemUiController().updateUiState(UI_STATE_ALL_APPS, !mIsDarkTheme);
        } else {
+4 −0
Original line number Diff line number Diff line
@@ -388,4 +388,8 @@ public class ScrimView extends View implements Insettable, OnChangeListener,
            return false;
        }
    }

    public int getDragHandleSize() {
        return mDragHandleSize;
    }
}