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

Commit ba1f85f0 authored by narinder Rana's avatar narinder Rana
Browse files

find device notch and update clock location : fix bug

parent b1891b33
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -60,7 +60,9 @@ public class ClockController implements TunerService.Tunable {
        mCenterClockLayout = statusBar.findViewById(R.id.center_clock_layout);
        mRightClockLayout = statusBar.findViewById(R.id.right_clock_layout);

        mStatusBar = statusBar;
        mActiveClock = mLeftClock;

        statusBar.setOnApplyWindowInsetsListener(new android.view.View.OnApplyWindowInsetsListener(){
            public WindowInsets onApplyWindowInsets (View v, WindowInsets insets){
                updateActiveClock();