SettingsFragment: Add preference for permissions fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
11
app/src/main/res/drawable/ic_list_check.xml
Normal file
11
app/src/main/res/drawable/ic_list_check.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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="M120,640L120,560L440,560L440,640L120,640ZM120,480L120,400L600,400L600,480L120,480ZM120,320L120,240L600,240L600,320L120,320ZM654,760L512,618L568,562L654,646L824,476L880,534L654,760Z"/>
|
||||
</vector>
|
||||
@@ -20,6 +20,7 @@
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -27,7 +28,17 @@
|
||||
android:orientation="vertical"
|
||||
android:showDividers="middle">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?attr/actionBarSize"
|
||||
android:visibility="gone"
|
||||
app:navigationIcon="@drawable/ic_arrow_back"
|
||||
app:title="@string/onboarding_title_permissions" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:includeFontPadding="true"
|
||||
@@ -39,6 +50,7 @@
|
||||
android:textSize="42sp" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/subtitle"
|
||||
style="@style/AuroraTextStyle.Subtitle.Alt"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -96,7 +96,11 @@
|
||||
android:id="@+id/settingsFragment"
|
||||
android:name="com.aurora.store.view.ui.preferences.SettingsFragment"
|
||||
android:label="@string/title_settings"
|
||||
tools:layout="@layout/fragment_setting" />
|
||||
tools:layout="@layout/fragment_setting" >
|
||||
<action
|
||||
android:id="@+id/action_settingsFragment_to_permissionsFragment"
|
||||
app:destination="@id/permissionsFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/installationPreference"
|
||||
android:name="com.aurora.store.view.ui.preferences.InstallationPreference"
|
||||
@@ -362,6 +366,16 @@
|
||||
android:id="@+id/action_dispenserFragment_to_removeDispenserDialog"
|
||||
app:destination="@id/removeDispenserDialog" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/permissionsFragment"
|
||||
android:name="com.aurora.store.view.ui.onboarding.PermissionsFragment"
|
||||
android:label="PermissionsFragment"
|
||||
tools:layout="@layout/fragment_onboarding_permissions">
|
||||
<argument
|
||||
android:name="isOnboarding"
|
||||
android:defaultValue="true"
|
||||
app:argType="boolean" />
|
||||
</fragment>
|
||||
<dialog
|
||||
android:id="@+id/appMenuSheet"
|
||||
android:name="com.aurora.store.view.ui.sheets.AppMenuSheet"
|
||||
|
||||
@@ -19,6 +19,13 @@
|
||||
|
||||
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<Preference
|
||||
app:icon="@drawable/ic_list_check"
|
||||
app:iconSpaceReserved="false"
|
||||
app:key="pref_perms"
|
||||
app:layout="@layout/item_preference"
|
||||
app:title="@string/onboarding_title_permissions" />
|
||||
|
||||
<Preference
|
||||
app:icon="@drawable/ic_installation"
|
||||
app:iconSpaceReserved="false"
|
||||
|
||||
Reference in New Issue
Block a user