Remove 'Statistics moved' message (#6433)

This commit is contained in:
ByteHamster 2023-04-15 15:55:42 +02:00 committed by GitHub
parent 39d309e906
commit 84e1ff248f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 18 deletions

View File

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

View File

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

View File

@ -372,7 +372,6 @@
<!-- Preferences -->
<string name="storage_pref">Storage</string>
<string name="storage_sum">Episode auto delete, Import, Export</string>
<string name="statistics_moved">The statistics screen was moved to the subscriptions screen. You can open it from there.</string>
<string name="project_pref">Project</string>
<string name="synchronization_pref">Synchronization</string>
<string name="synchronization_sum">Synchronize with other devices</string>