From 7d78c8819c56ba984b5246a4cfb795990d14cd1e Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 8 Mar 2022 23:15:37 +0100 Subject: [PATCH] Ignore some other lint warnings --- .../android/sdk/internal/legacy/riot/LoginStorage.java | 2 ++ vector/lint.xml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/legacy/riot/LoginStorage.java b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/legacy/riot/LoginStorage.java index 2820b66886..62f90f563e 100755 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/legacy/riot/LoginStorage.java +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/legacy/riot/LoginStorage.java @@ -16,6 +16,7 @@ package org.matrix.android.sdk.internal.legacy.riot; +import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; @@ -196,6 +197,7 @@ public class LoginStorage { /** * Clear the stored values */ + @SuppressLint("ApplySharedPref") public void clear() { SharedPreferences prefs = mContext.getSharedPreferences(PREFS_LOGIN, Context.MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); diff --git a/vector/lint.xml b/vector/lint.xml index 22da6adfa9..6bdd2ae585 100644 --- a/vector/lint.xml +++ b/vector/lint.xml @@ -15,6 +15,11 @@ + + + + +