Add new advanced preference page
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.aurora.store.view.ui.preferences
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.preference.PreferenceFragmentCompat
|
||||
import com.aurora.store.R
|
||||
|
||||
class AdvancedPreference : PreferenceFragmentCompat() {
|
||||
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
||||
setPreferencesFromResource(R.xml.preferences_advanced, rootKey)
|
||||
}
|
||||
}
|
||||
29
app/src/main/res/drawable/ic_tune.xml
Normal file
29
app/src/main/res/drawable/ic_tune.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2022, Google LLC
|
||||
~
|
||||
~ Aurora Store is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation, either version 2 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ Aurora Store is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License
|
||||
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
|
||||
~
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M440,840L440,600L520,600L520,680L840,680L840,760L520,760L520,840L440,840ZM120,760L120,680L360,680L360,760L120,760ZM280,600L280,520L120,520L120,440L280,440L280,360L360,360L360,600L280,600ZM440,520L440,440L840,440L840,520L440,520ZM600,360L600,120L680,120L680,200L840,200L840,280L680,280L680,360L600,360ZM120,280L120,200L520,200L520,280L120,280Z"/>
|
||||
</vector>
|
||||
|
||||
@@ -361,6 +361,7 @@
|
||||
<string name="title_settings">"Settings"</string>
|
||||
<string name="title_spoof_manager">"Spoof manager"</string>
|
||||
<string name="title_updates">"Updates"</string>
|
||||
<string name="title_advanced">"Advanced"</string>
|
||||
<string name="title_manual_download">"Manual download"</string>
|
||||
<string name="toast_abandon_sessions">"Old installation sessions abandoned"</string>
|
||||
<string name="toast_anonymous_restriction">"Not available on anonymous accounts"</string>
|
||||
|
||||
4
app/src/main/res/xml/preferences_advanced.xml
Normal file
4
app/src/main/res/xml/preferences_advanced.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -65,4 +65,12 @@
|
||||
app:key="pref_network"
|
||||
app:layout="@layout/item_preference"
|
||||
app:title="@string/title_updates" />
|
||||
</PreferenceScreen>
|
||||
|
||||
<Preference
|
||||
android:fragment="com.aurora.store.view.ui.preferences.AdvancedPreference"
|
||||
app:icon="@drawable/ic_tune"
|
||||
app:iconSpaceReserved="false"
|
||||
app:key="pref_advanced"
|
||||
app:layout="@layout/item_preference"
|
||||
app:title="@string/title_advanced" />
|
||||
</PreferenceScreen>
|
||||
|
||||
Reference in New Issue
Block a user