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 @@ + + + + +