diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-04-15 15:55:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 15:55:42 +0200 |
commit | 84e1ff248f6e6c437dd5ecaf8217a7ee6b5c1af5 (patch) | |
tree | cab221c06c2f26fdfe19915f9efe09749d72a901 /app | |
parent | 39d309e906c0b0b3a199064505ce76bc8045abd9 (diff) | |
download | AntennaPod-84e1ff248f6e6c437dd5ecaf8217a7ee6b5c1af5.zip |
Remove 'Statistics moved' message (#6433)
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java | 11 | ||||
-rw-r--r-- | app/src/main/res/xml/preferences.xml | 6 |
2 files changed, 0 insertions, 17 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java index 91bb00437..7f5205db4 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java @@ -5,7 +5,6 @@ import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; import android.os.Bundle; -import com.google.android.material.dialog.MaterialAlertDialogBuilder; import androidx.appcompat.app.AppCompatActivity; import androidx.preference.Preference; import androidx.preference.PreferenceFragmentCompat; @@ -40,7 +39,6 @@ public class MainPreferencesFragment extends PreferenceFragmentCompat { private static final String PREF_ABOUT = "prefAbout"; private static final String PREF_NOTIFICATION = "notifications"; private static final String PREF_CONTRIBUTE = "prefContribute"; - private static final String PREF_STATISTICS = "statistics"; @Override public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { @@ -130,15 +128,6 @@ public class MainPreferencesFragment extends PreferenceFragmentCompat { startActivity(new Intent(getActivity(), BugReportActivity.class)); return true; }); - findPreference(PREF_STATISTICS).setOnPreferenceClickListener( - preference -> { - new MaterialAlertDialogBuilder(getContext()) - .setMessage(R.string.statistics_moved) - .setPositiveButton(android.R.string.ok, null) - .show(); - return true; - } - ); } private String getLocalizedWebsiteLink() { diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 38b11cbab..9967d7fd1 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -44,12 +44,6 @@ android:title="@string/notification_pref_fragment" android:icon="@drawable/ic_notifications"/> - <Preference - android:key="statistics" - android:title="@string/statistics_label" - android:summary="@string/statistics_moved" - android:icon="@drawable/ic_chart_box"/> - <PreferenceCategory android:key="project" android:title="@string/project_pref"> |