mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-28 12:47:43 +00:00
Linter fixes
This commit is contained in:
parent
aa69b67cfe
commit
acbea545d0
@ -35,6 +35,7 @@ import android.preference.PreferenceManager;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.RequiresApi;
|
||||
import androidx.core.app.NotificationCompat;
|
||||
|
||||
import org.kde.kdeconnect.Helpers.DeviceHelper;
|
||||
@ -48,8 +49,6 @@ import org.kde.kdeconnect_tp.R;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import static android.content.Context.POWER_SERVICE;
|
||||
|
||||
@PluginFactory.LoadablePlugin
|
||||
public class FindMyPhonePlugin extends Plugin {
|
||||
public final static String PACKET_TYPE_FINDMYPHONE_REQUEST = "kdeconnect.findmyphone.request";
|
||||
@ -85,7 +84,7 @@ public class FindMyPhonePlugin extends Plugin {
|
||||
notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
notificationId = (int) System.currentTimeMillis();
|
||||
audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
|
||||
powerManager = (PowerManager) context.getSystemService(POWER_SERVICE);
|
||||
powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
Uri ringtone;
|
||||
@ -138,6 +137,7 @@ public class FindMyPhonePlugin extends Plugin {
|
||||
return true;
|
||||
}
|
||||
|
||||
@RequiresApi(16)
|
||||
private void showBroadcastNotification() {
|
||||
Intent intent = new Intent(context, FindMyPhoneReceiver.class);
|
||||
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
|
||||
|
Loading…
x
Reference in New Issue
Block a user