mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-13 20:29:27 +01:00
Merge pull request #4450 from wb9688/fix-release-debug-settings
Fix compiling release build
This commit is contained in:
commit
c4ae72c3c1
@ -21,10 +21,5 @@ public class MainSettingsFragment extends BasePreferenceFragment {
|
|||||||
|
|
||||||
defaultPreferences.edit().putBoolean(getString(R.string.update_app_key), false).apply();
|
defaultPreferences.edit().putBoolean(getString(R.string.update_app_key), false).apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DEBUG) {
|
|
||||||
final Preference debug = findPreference(getString(R.string.debug_pref_screen_key));
|
|
||||||
getPreferenceScreen().removePreference(debug);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
50
app/src/release/res/xml/main_settings.xml
Normal file
50
app/src/release/res/xml/main_settings.xml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<PreferenceScreen
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:key="general_preferences"
|
||||||
|
android:title="@string/settings">
|
||||||
|
|
||||||
|
<PreferenceScreen
|
||||||
|
app:iconSpaceReserved="false"
|
||||||
|
android:fragment="org.schabi.newpipe.settings.VideoAudioSettingsFragment"
|
||||||
|
android:icon="?attr/ic_headset"
|
||||||
|
android:title="@string/settings_category_video_audio_title"/>
|
||||||
|
|
||||||
|
<PreferenceScreen
|
||||||
|
app:iconSpaceReserved="false"
|
||||||
|
android:fragment="org.schabi.newpipe.settings.DownloadSettingsFragment"
|
||||||
|
android:icon="?attr/ic_file_download"
|
||||||
|
android:title="@string/settings_category_downloads_title"/>
|
||||||
|
|
||||||
|
<PreferenceScreen
|
||||||
|
app:iconSpaceReserved="false"
|
||||||
|
android:fragment="org.schabi.newpipe.settings.AppearanceSettingsFragment"
|
||||||
|
android:icon="?attr/ic_palette"
|
||||||
|
android:title="@string/settings_category_appearance_title"/>
|
||||||
|
|
||||||
|
<PreferenceScreen
|
||||||
|
app:iconSpaceReserved="false"
|
||||||
|
android:fragment="org.schabi.newpipe.settings.HistorySettingsFragment"
|
||||||
|
android:icon="?attr/ic_history"
|
||||||
|
android:title="@string/settings_category_history_title"/>
|
||||||
|
|
||||||
|
<PreferenceScreen
|
||||||
|
app:iconSpaceReserved="false"
|
||||||
|
android:fragment="org.schabi.newpipe.settings.ContentSettingsFragment"
|
||||||
|
android:icon="?attr/ic_language"
|
||||||
|
android:title="@string/content"/>
|
||||||
|
|
||||||
|
<PreferenceScreen
|
||||||
|
app:iconSpaceReserved="false"
|
||||||
|
android:fragment="org.schabi.newpipe.settings.NotificationSettingsFragment"
|
||||||
|
android:icon="?attr/ic_play_arrow"
|
||||||
|
android:title="@string/settings_category_notification_title"/>
|
||||||
|
|
||||||
|
<PreferenceScreen
|
||||||
|
app:iconSpaceReserved="false"
|
||||||
|
android:fragment="org.schabi.newpipe.settings.UpdateSettingsFragment"
|
||||||
|
android:icon="?attr/ic_settings_update"
|
||||||
|
android:title="@string/settings_category_updates_title"
|
||||||
|
android:key="update_pref_screen_key"/>
|
||||||
|
</PreferenceScreen>
|
Loading…
Reference in New Issue
Block a user