mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
fix: AbstractMethodError CompanionDeviceService.onDeviceDisappeared (#5028)
In older Android versions this is method is abstract.
This commit is contained in:
+13
@@ -57,6 +57,12 @@ public class GBCompanionDeviceService extends CompanionDeviceService {
|
||||
}
|
||||
}
|
||||
|
||||
@DeprecatedSinceApi(api = Build.VERSION_CODES.TIRAMISU)
|
||||
@Override
|
||||
public void onDeviceDisappeared(@NonNull String address) {
|
||||
// nop - the super is abstract in older versions
|
||||
}
|
||||
|
||||
@RequiresApi(api = Build.VERSION_CODES.TIRAMISU)
|
||||
@DeprecatedSinceApi(api = Build.VERSION_CODES.BAKLAVA)
|
||||
@Override
|
||||
@@ -67,6 +73,13 @@ public class GBCompanionDeviceService extends CompanionDeviceService {
|
||||
}
|
||||
}
|
||||
|
||||
@RequiresApi(api = Build.VERSION_CODES.TIRAMISU)
|
||||
@DeprecatedSinceApi(api = Build.VERSION_CODES.BAKLAVA)
|
||||
@Override
|
||||
public void onDeviceDisappeared(@NonNull AssociationInfo associationInfo) {
|
||||
// nop - the super is abstract in older versions
|
||||
}
|
||||
|
||||
@RequiresApi(api = Build.VERSION_CODES.BAKLAVA)
|
||||
@Override
|
||||
public void onDevicePresenceEvent(@NonNull DevicePresenceEvent event) {
|
||||
|
||||
Reference in New Issue
Block a user