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

Commit 49ad71c1 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Correct the logic for when to open SMS app.

This is to correct the behavior when clicking on notification
for SMS that is received when the user had not unlocked device
after boot.

Test: manual, basic sanity
Bug: 115563714
Change-Id: Id482999e8c0a3875847d4e4bdb358f84e2569ff2
parent 0155c6b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1713,7 +1713,7 @@ public abstract class InboundSmsHandler extends StateMachine {
                // do nothing if the user had not unlocked the device yet
                UserManager userManager =
                        (UserManager) context.getSystemService(Context.USER_SERVICE);
                if (!userManager.isUserUnlocked()) {
                if (userManager.isUserUnlocked()) {
                    context.startActivity(context.getPackageManager().getLaunchIntentForPackage(
                            Telephony.Sms.getDefaultSmsPackage(context)));
                }