Remove 'Statistics moved' message (#6433)
This commit is contained in:
parent
39d309e906
commit
84e1ff248f
|
@ -5,7 +5,6 @@ import android.graphics.PorterDuff;
|
||||||
import android.graphics.PorterDuffColorFilter;
|
import android.graphics.PorterDuffColorFilter;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.preference.Preference;
|
import androidx.preference.Preference;
|
||||||
import androidx.preference.PreferenceFragmentCompat;
|
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_ABOUT = "prefAbout";
|
||||||
private static final String PREF_NOTIFICATION = "notifications";
|
private static final String PREF_NOTIFICATION = "notifications";
|
||||||
private static final String PREF_CONTRIBUTE = "prefContribute";
|
private static final String PREF_CONTRIBUTE = "prefContribute";
|
||||||
private static final String PREF_STATISTICS = "statistics";
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
||||||
|
@ -130,15 +128,6 @@ public class MainPreferencesFragment extends PreferenceFragmentCompat {
|
||||||
startActivity(new Intent(getActivity(), BugReportActivity.class));
|
startActivity(new Intent(getActivity(), BugReportActivity.class));
|
||||||
return true;
|
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() {
|
private String getLocalizedWebsiteLink() {
|
||||||
|
|
|
@ -44,12 +44,6 @@
|
||||||
android:title="@string/notification_pref_fragment"
|
android:title="@string/notification_pref_fragment"
|
||||||
android:icon="@drawable/ic_notifications"/>
|
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
|
<PreferenceCategory
|
||||||
android:key="project"
|
android:key="project"
|
||||||
android:title="@string/project_pref">
|
android:title="@string/project_pref">
|
||||||
|
|
|
@ -372,7 +372,6 @@
|
||||||
<!-- Preferences -->
|
<!-- Preferences -->
|
||||||
<string name="storage_pref">Storage</string>
|
<string name="storage_pref">Storage</string>
|
||||||
<string name="storage_sum">Episode auto delete, Import, Export</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="project_pref">Project</string>
|
||||||
<string name="synchronization_pref">Synchronization</string>
|
<string name="synchronization_pref">Synchronization</string>
|
||||||
<string name="synchronization_sum">Synchronize with other devices</string>
|
<string name="synchronization_sum">Synchronize with other devices</string>
|
||||||
|
|
Loading…
Reference in New Issue