Ignore some other lint warnings

This commit is contained in:
Benoit Marty 2022-03-08 23:15:37 +01:00 committed by Benoit Marty
parent cbdc28dd9b
commit 7d78c8819c
2 changed files with 7 additions and 0 deletions

View File

@ -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();

View File

@ -15,6 +15,11 @@
<issue id="IconExpectedSize" severity="error" />
<issue id="LocaleFolder" severity="error" />
<issue id="TooManyViews" severity="warning">
<!-- Ignore TooManyViews in debug build type -->
<ignore path="**/src/debug/**" />
</issue>
<!-- String resource has to be used, for the rest we can ignore for now
TODO: stop ignoring warning at all those locations -->
<issue id="UnusedResources" severity="error">