diff --git a/app/src/main/java/com/jens/automation2/Actions.java b/app/src/main/java/com/jens/automation2/Actions.java index 95f7c94e..bea12e74 100644 --- a/app/src/main/java/com/jens/automation2/Actions.java +++ b/app/src/main/java/com/jens/automation2/Actions.java @@ -93,6 +93,7 @@ public class Actions Miscellaneous.logEvent("w", "createNotification", "Creating notification with title " + elements[0] + " and text " + elements[1], 3); + // Create a new notification ID each time int notificationId = Math.round(Calendar.getInstance().getTimeInMillis()/1000); try diff --git a/app/src/main/java/com/jens/automation2/AsyncTasks.java b/app/src/main/java/com/jens/automation2/AsyncTasks.java index 3360e846..793e2f40 100644 --- a/app/src/main/java/com/jens/automation2/AsyncTasks.java +++ b/app/src/main/java/com/jens/automation2/AsyncTasks.java @@ -4,7 +4,6 @@ import android.content.Context; import android.os.AsyncTask; import android.util.Log; -import java.util.ArrayList; import java.util.Calendar; public class AsyncTasks diff --git a/app/src/main/java/com/jens/automation2/AutomationService.java b/app/src/main/java/com/jens/automation2/AutomationService.java index 9fb03a4e..b2cedb62 100644 --- a/app/src/main/java/com/jens/automation2/AutomationService.java +++ b/app/src/main/java/com/jens/automation2/AutomationService.java @@ -12,8 +12,6 @@ import android.app.PendingIntent; import android.app.Service; import android.content.Context; import android.content.Intent; -import android.content.res.Configuration; -import android.content.res.Resources; import android.media.AudioManager; import android.os.Binder; import android.os.Build; @@ -22,7 +20,6 @@ import android.os.Environment; import android.os.IBinder; import android.speech.tts.TextToSpeech; import android.speech.tts.TextToSpeech.OnInitListener; -import android.util.DisplayMetrics; import android.util.Log; import android.widget.Toast; @@ -39,7 +36,6 @@ import java.util.Calendar; import java.util.HashMap; import java.util.Locale; import java.util.Map; -import java.util.Set; @SuppressLint("NewApi") public class AutomationService extends Service implements OnInitListener