issue-1054 handle all deprecation warnings (#1072)

This commit is contained in:
Simon Rusinov
2022-10-10 21:28:35 +05:00
committed by GitHub
parent 3ef17404b7
commit 78348a6f9c
6 changed files with 85 additions and 22 deletions

View File

@@ -137,7 +137,7 @@ public class CardsOnPowerScreenService extends ControlsProviderService {
closePowerScreenOnAndroid11();
}
@SuppressLint({"MissingPermission", "deprecation"})
@SuppressWarnings({"MissingPermission", "deprecation"})
private void closePowerScreenOnAndroid11() {
// Android 12 will auto-close the power screen, but earlier versions won't
// Lint complains about this but on Android 11 the permission is not needed