Ignore some other lint warnings
This commit is contained in:
parent
cbdc28dd9b
commit
7d78c8819c
|
@ -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();
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue