This commit is contained in:
Alessandro Ferro 2022-10-03 10:18:55 +02:00
parent cafcbbe661
commit d354f5d581
2 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,5 @@
package com.xfarrow.locatemydevice; package com.xfarrow.locatemydevice;
import android.app.KeyguardManager;
import android.content.Context;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;

View File

@ -329,6 +329,7 @@ public class SmsHandler {
lockScreenMessage.putExtra(Utils.SHOW_MESSAGE_OPTION, messageToDisplay); lockScreenMessage.putExtra(Utils.SHOW_MESSAGE_OPTION, messageToDisplay);
lockScreenMessage.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); lockScreenMessage.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(lockScreenMessage); context.startActivity(lockScreenMessage);
Utils.sendSms(smsManager, "Displayed on screen", sender);
} }
} }