mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-02 15:15:09 +00:00
Change version int to constant
This commit is contained in:
committed by
Albert Vaca Cintora
parent
9f037f841e
commit
e103d8cd47
@@ -107,7 +107,7 @@ public class FindMyPhonePlugin extends Plugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onPacketReceived(NetworkPacket np) {
|
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 intent = new Intent(context, FindMyPhoneActivity.class);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
intent.putExtra(FindMyPhoneActivity.EXTRA_DEVICE_ID, device.getDeviceId());
|
intent.putExtra(FindMyPhoneActivity.EXTRA_DEVICE_ID, device.getDeviceId());
|
||||||
|
Reference in New Issue
Block a user