Commit 6d6cb24e authored by Geoffrey Métais's avatar Geoffrey Métais

Option to filter non media files from browsers

parent 044ed8c2
......@@ -443,6 +443,8 @@
<string name="restart_message">Changes will take effect once application has restarted.\n\nRestart now?</string>
<string name="restart_message_OK">OK</string>
<string name="restart_message_Later">Later</string>
<string name="browser_show_all_title">Show all files in browser</string>
<string name="browser_show_all_summary">Display files that are not recognized as audio or video in browsers</string>
<string name="developer_prefs_category">Developer</string>
<string name="enable_verbose_mode">Verbose</string>
......
......@@ -40,6 +40,12 @@
android:summary="@string/resume_playback_summary"
android:title="@string/resume_playback_title" />
<CheckBoxPreference
android:defaultValue="true"
android:key="browser_show_all_files"
android:summary="@string/browser_show_all_summary"
android:title="@string/browser_show_all_title" />
<CheckBoxPreference
android:defaultValue="true"
android:key="blurred_cover_background"
......
......@@ -86,8 +86,8 @@ public class PreferencesUi extends BasePreferenceFragment implements SharedPrefe
}
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if (key.equals("set_locale"))
UiTools.restartDialog(getActivity());
if (key.equals("set_locale")) UiTools.restartDialog(getActivity());
else if (key.equals("browser_show_all_files")) ((PreferencesActivity) getActivity()).setRestart();
}
private void prepareLocaleList() {
......
......@@ -84,6 +84,9 @@ public class PreferencesUi extends BasePreferenceFragment implements SharedPrefe
case "tv_ui":
((PreferencesActivity) getActivity()).setRestartApp();
break;
case "browser_show_all_files":
((PreferencesActivity) getActivity()).setRestart();
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment