mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-25 17:40:33 +00:00
Fix typo in HistorySettinsFragment
Rename viewsHistroyClearKey to viewsHistoryClearKey
This commit is contained in:
parent
ec3ae7c7b8
commit
8de5c53485
@ -18,7 +18,7 @@ import io.reactivex.disposables.Disposable;
|
|||||||
|
|
||||||
public class HistorySettingsFragment extends BasePreferenceFragment {
|
public class HistorySettingsFragment extends BasePreferenceFragment {
|
||||||
private String cacheWipeKey;
|
private String cacheWipeKey;
|
||||||
private String viewsHistroyClearKey;
|
private String viewsHistoryClearKey;
|
||||||
private String searchHistoryClearKey;
|
private String searchHistoryClearKey;
|
||||||
private HistoryRecordManager recordManager;
|
private HistoryRecordManager recordManager;
|
||||||
private CompositeDisposable disposables;
|
private CompositeDisposable disposables;
|
||||||
@ -27,7 +27,7 @@ public class HistorySettingsFragment extends BasePreferenceFragment {
|
|||||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
cacheWipeKey = getString(R.string.metadata_cache_wipe_key);
|
cacheWipeKey = getString(R.string.metadata_cache_wipe_key);
|
||||||
viewsHistroyClearKey = getString(R.string.clear_views_history_key);
|
viewsHistoryClearKey = getString(R.string.clear_views_history_key);
|
||||||
searchHistoryClearKey = getString(R.string.clear_search_history_key);
|
searchHistoryClearKey = getString(R.string.clear_search_history_key);
|
||||||
recordManager = new HistoryRecordManager(getActivity());
|
recordManager = new HistoryRecordManager(getActivity());
|
||||||
disposables = new CompositeDisposable();
|
disposables = new CompositeDisposable();
|
||||||
@ -46,7 +46,7 @@ public class HistorySettingsFragment extends BasePreferenceFragment {
|
|||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preference.getKey().equals(viewsHistroyClearKey)) {
|
if (preference.getKey().equals(viewsHistoryClearKey)) {
|
||||||
new AlertDialog.Builder(getActivity())
|
new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(R.string.delete_view_history_alert)
|
.setTitle(R.string.delete_view_history_alert)
|
||||||
.setNegativeButton(R.string.cancel, ((dialog, which) -> dialog.dismiss()))
|
.setNegativeButton(R.string.cancel, ((dialog, which) -> dialog.dismiss()))
|
||||||
|
Loading…
Reference in New Issue
Block a user