Imports optimized

This commit is contained in:
Jens 2023-07-11 00:07:07 +02:00
parent 6b9dbca7ab
commit 28aa0c3e4b
3 changed files with 1 additions and 5 deletions

View File

@ -93,6 +93,7 @@ public class Actions
Miscellaneous.logEvent("w", "createNotification", "Creating notification with title " + elements[0] + " and text " + elements[1], 3); 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); int notificationId = Math.round(Calendar.getInstance().getTimeInMillis()/1000);
try try

View File

@ -4,7 +4,6 @@ import android.content.Context;
import android.os.AsyncTask; import android.os.AsyncTask;
import android.util.Log; import android.util.Log;
import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
public class AsyncTasks public class AsyncTasks

View File

@ -12,8 +12,6 @@ import android.app.PendingIntent;
import android.app.Service; import android.app.Service;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.media.AudioManager; import android.media.AudioManager;
import android.os.Binder; import android.os.Binder;
import android.os.Build; import android.os.Build;
@ -22,7 +20,6 @@ import android.os.Environment;
import android.os.IBinder; import android.os.IBinder;
import android.speech.tts.TextToSpeech; import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.OnInitListener; import android.speech.tts.TextToSpeech.OnInitListener;
import android.util.DisplayMetrics;
import android.util.Log; import android.util.Log;
import android.widget.Toast; import android.widget.Toast;
@ -39,7 +36,6 @@ import java.util.Calendar;
import java.util.HashMap; import java.util.HashMap;
import java.util.Locale; import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.Set;
@SuppressLint("NewApi") @SuppressLint("NewApi")
public class AutomationService extends Service implements OnInitListener public class AutomationService extends Service implements OnInitListener