2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Change version int to constant

This commit is contained in:
Albert Vaca Cintora
2023-03-07 18:00:23 +01:00
committed by Albert Vaca Cintora
parent 9f037f841e
commit e103d8cd47

View File

@@ -107,7 +107,7 @@ public class FindMyPhonePlugin extends Plugin {
@Override
public boolean onPacketReceived(NetworkPacket np) {
if (Build.VERSION.SDK_INT < 29 || MyApplication.isInForeground()) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q || MyApplication.isInForeground()) {
Intent intent = new Intent(context, FindMyPhoneActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(FindMyPhoneActivity.EXTRA_DEVICE_ID, device.getDeviceId());