diff --git a/app/src/main/java/ru/vtosters/lite/ui/fragments/OtherFragment.java b/app/src/main/java/ru/vtosters/lite/ui/fragments/OtherFragment.java index 58d98ee41..e49eb890e 100644 --- a/app/src/main/java/ru/vtosters/lite/ui/fragments/OtherFragment.java +++ b/app/src/main/java/ru/vtosters/lite/ui/fragments/OtherFragment.java @@ -3,6 +3,7 @@ package ru.vtosters.lite.ui.fragments; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; +import android.content.SharedPreferences; import android.os.Bundle; import android.support.v7.preference.Preference; import android.widget.Toast; @@ -103,11 +104,25 @@ public class OtherFragment extends MaterialPreferenceToolbarFragment { } } + public class f implements Preference.c { + @Override // android.support.v7.preference.Preference.c + public boolean a(Preference preference) { + SharedPreferences prefs = Helper.GetContext().getSharedPreferences("stickers", Context.MODE_PRIVATE); + prefs.edit().clear().commit(); + Helper.restarting(); + return true; + } + + f() { + } + } + private void prefs() { a("firebasefix").a((Preference.c) new a()); a("applicationstop").a((Preference.c) new b()); a("tokencopy").a((Preference.c) new c()); a("applicationrestart").a((Preference.c) new d()); a("clearcache").a((Preference.c) new e()); + a("stickfix").a((Preference.c) new f()); } } diff --git a/smali/res/xml/preferences_other.xml b/smali/res/xml/preferences_other.xml index 29e675a3e..4f060251d 100644 --- a/smali/res/xml/preferences_other.xml +++ b/smali/res/xml/preferences_other.xml @@ -12,6 +12,10 @@ +