From d354f5d581bc36dea49ecc63797a0ddd2e7ad755 Mon Sep 17 00:00:00 2001 From: Alessandro Ferro <49845537+xfarrow@users.noreply.github.com> Date: Mon, 3 Oct 2022 10:18:55 +0200 Subject: [PATCH] update --- .../java/com/xfarrow/locatemydevice/ShowMessageActivity.java | 2 -- .../src/main/java/com/xfarrow/locatemydevice/SmsHandler.java | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) 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); } }