Skip to content

Commit

Permalink
Change import code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Electric1447 committed Aug 30, 2021
1 parent 9bc8a4f commit a741d7f
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import android.os.Build;
import android.view.View;
import android.widget.RemoteViews;

import androidx.core.app.NotificationCompat;

import com.dosse.airpods.R;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.dosse.airpods.notification;

import static com.dosse.airpods.notification.NotificationBuilder.NOTIFICATION_ID;
import static com.dosse.airpods.notification.NotificationBuilder.TAG;

import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
Expand All @@ -12,6 +9,9 @@
import com.dosse.airpods.pods.PodsStatus;
import com.dosse.airpods.utils.Logger;

import static com.dosse.airpods.notification.NotificationBuilder.NOTIFICATION_ID;
import static com.dosse.airpods.notification.NotificationBuilder.TAG;

/**
* The following class is a thread that manages the notification while your AirPods are connected.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.dosse.airpods.pods;

import static com.dosse.airpods.pods.PodsStatusScanCallback.getScanFilters;
import static com.dosse.airpods.utils.SharedPreferencesUtils.isSavingBattery;

import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
Expand All @@ -21,18 +18,20 @@
import android.os.IBinder;
import android.os.ParcelUuid;
import android.provider.Settings;

import androidx.annotation.RequiresApi;

import com.dosse.airpods.R;
import com.dosse.airpods.notification.NotificationThread;
import com.dosse.airpods.receivers.BluetoothListener;
import com.dosse.airpods.receivers.BluetoothReceiver;
import com.dosse.airpods.notification.NotificationThread;
import com.dosse.airpods.R;
import com.dosse.airpods.receivers.ScreenReceiver;
import com.dosse.airpods.utils.Logger;

import java.util.Objects;

import static com.dosse.airpods.pods.PodsStatusScanCallback.getScanFilters;
import static com.dosse.airpods.utils.SharedPreferencesUtils.isSavingBattery;

/**
* This is the class that does most of the work. It has 3 functions:
* - Detect when AirPods are detected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.dosse.airpods.R;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.dosse.airpods.ui;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.dosse.airpods.R;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.os.Bundle;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;
import androidx.preference.Preference;
import androidx.preference.PreferenceFragmentCompat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.annotation.SuppressLint;
import android.content.Context;

import androidx.appcompat.app.AlertDialog;

import com.dosse.airpods.R;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package com.dosse.airpods.utils;

import static androidx.core.content.ContextCompat.checkSelfPermission;

import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.PowerManager;

import androidx.annotation.RequiresApi;

import java.util.Objects;

import static androidx.core.content.ContextCompat.checkSelfPermission;

public class PermissionUtils {

public static boolean getBatteryOptimizationsPermission (Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.content.Context;
import android.content.SharedPreferences;

import androidx.preference.PreferenceManager;

public class SharedPreferencesUtils {
Expand Down

0 comments on commit a741d7f

Please sign in to comment.