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

Commit 50b66fb8 authored by Aaron Liu's avatar Aaron Liu Committed by Android (Google) Code Review
Browse files

Merge "Register receiver on bg thread." into main

parents 8382b022 1cafd22a
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -397,8 +397,10 @@ public class KeyguardSliceProvider extends SliceProvider implements
            IntentFilter filter = new IntentFilter();
            IntentFilter filter = new IntentFilter();
            filter.addAction(Intent.ACTION_DATE_CHANGED);
            filter.addAction(Intent.ACTION_DATE_CHANGED);
            filter.addAction(Intent.ACTION_LOCALE_CHANGED);
            filter.addAction(Intent.ACTION_LOCALE_CHANGED);
            mBgHandler.post(() -> {
                getContext().registerReceiver(mIntentReceiver, filter, null /* permission*/,
                getContext().registerReceiver(mIntentReceiver, filter, null /* permission*/,
                        null /* scheduler */);
                        null /* scheduler */);
            });
            mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback);
            mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback);
            mRegistered = true;
            mRegistered = true;
        }
        }