diff --git a/src/app/src/main/java/com/xfarrow/locatemydevice/ShowMessageActivity.java b/src/app/src/main/java/com/xfarrow/locatemydevice/ShowMessageActivity.java index f3a657a..7eee732 100644 --- a/src/app/src/main/java/com/xfarrow/locatemydevice/ShowMessageActivity.java +++ b/src/app/src/main/java/com/xfarrow/locatemydevice/ShowMessageActivity.java @@ -1,7 +1,5 @@ package com.xfarrow.locatemydevice; -import android.app.KeyguardManager; -import android.content.Context; import android.os.Build; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/src/app/src/main/java/com/xfarrow/locatemydevice/SmsHandler.java b/src/app/src/main/java/com/xfarrow/locatemydevice/SmsHandler.java index 847d218..f5924df 100644 --- a/src/app/src/main/java/com/xfarrow/locatemydevice/SmsHandler.java +++ b/src/app/src/main/java/com/xfarrow/locatemydevice/SmsHandler.java @@ -329,6 +329,7 @@ public class SmsHandler { lockScreenMessage.putExtra(Utils.SHOW_MESSAGE_OPTION, messageToDisplay); lockScreenMessage.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(lockScreenMessage); + Utils.sendSms(smsManager, "Displayed on screen", sender); } }