Fix Lint issues

This commit is contained in:
Marvin W 2022-01-24 19:51:54 +01:00
parent 91071bbea1
commit 7969aa817b
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
2 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import android.accounts.Account;
import android.accounts.AccountManager;
import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.annotation.SuppressLint;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
@ -205,6 +206,7 @@ public class AuthManagerServiceImpl extends IAuthManagerService.Stub {
}
@Override
@SuppressLint("MissingPermission") // Workaround bug in Android Linter
public Bundle clearToken(String token, Bundle extras) {
String packageName = extras.getString(KEY_ANDROID_PACKAGE_NAME);
if (packageName == null) packageName = extras.getString(KEY_CLIENT_PACKAGE_NAME);

View File

@ -146,6 +146,7 @@ PlacePickerActivity extends AppCompatActivity /*implements Map.UpdateListener*/
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode == 0) {
for (int grantResult : grantResults) {
if (grantResult != PERMISSION_GRANTED) return;