summaryrefslogtreecommitdiff
path: root/app/src/main/res/navigation
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-06-09 06:34:10 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-06-09 06:34:10 +0000
commit8b1855bce1313ad84df8f96efdbb62e2acf7ff33 (patch)
tree94e19efed58b931139a86c7c9c8aced91767e6c3 /app/src/main/res/navigation
parent333623483246398c76bed4aa5ee5b43c843f65cd (diff)
parent74b9860784913c097ae59e58b0958da7744ebc2e (diff)
Merge branch '1227-navigation_graph' into 'main'
1227: use navigation graph component, avoid view (fragments) duplications See merge request e/os/advanced-privacy!136
Diffstat (limited to 'app/src/main/res/navigation')
-rw-r--r--app/src/main/res/navigation/nav_graph.xml91
1 files changed, 91 insertions, 0 deletions
diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml
new file mode 100644
index 0000000..52a1677
--- /dev/null
+++ b/app/src/main/res/navigation/nav_graph.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2023 MURENA SAS
+ ~
+ ~ This program 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 3 of the License, or
+ ~ (at your option) any later version.
+ ~
+ ~ This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
+ -->
+<navigation xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/nav_graph"
+ app:startDestination="@id/dashboardFragment"
+ >
+
+ <fragment
+ android:id="@+id/dashboardFragment"
+ android:name="foundation.e.advancedprivacy.features.dashboard.DashboardFragment"
+ android:label="@string/app_name"
+ >
+ <action
+ android:id="@+id/goto_trackersFragment"
+ app:destination="@id/trackersFragment"
+ />
+ <action
+ android:id="@+id/goto_fakeLocationFragment"
+ app:destination="@id/fakeLocationFragment"
+ />
+ <action
+ android:id="@+id/goto_internetPrivacyFragment"
+ app:destination="@id/internetPrivacyFragment"
+ />
+ <action
+ android:id="@+id/goto_appTrackersFragment"
+ app:destination="@id/appTrackersFragment"
+ />
+ <action
+ android:id="@+id/goto_settingsPermissionsActivity"
+ app:destination="@id/settingsPermissionsActivity"
+ />
+ <argument
+ android:name="highlightLeaks"
+ app:argType="integer"
+ android:defaultValue="-1"
+ />
+ </fragment>
+ <fragment
+ android:id="@+id/trackersFragment"
+ android:name="foundation.e.advancedprivacy.features.trackers.TrackersFragment"
+ android:label="@string/trackers_title"
+ >
+ <action
+ android:id="@+id/goto_appTrackersFragment"
+ app:destination="@id/appTrackersFragment"
+ />
+ </fragment>
+ <fragment
+ android:id="@+id/appTrackersFragment"
+ android:name="foundation.e.advancedprivacy.features.trackers.apptrackers.AppTrackersFragment"
+ android:label="AppTrackersFragment"
+ >
+ <argument
+ android:name="appUid"
+ app:argType="integer"
+ android:defaultValue="1000"
+ />
+ </fragment>
+ <fragment
+ android:id="@+id/fakeLocationFragment"
+ android:name="foundation.e.advancedprivacy.features.location.FakeLocationFragment"
+ android:label="@string/location_title"
+ />
+ <fragment
+ android:id="@+id/internetPrivacyFragment"
+ android:name="foundation.e.advancedprivacy.features.internetprivacy.InternetPrivacyFragment"
+ android:label="@string/ipscrambling_title"
+ />
+ <activity
+ android:id="@+id/settingsPermissionsActivity"
+ android:label="@string/dashboard_apps_permissions_title"
+ app:action="android.intent.action.MANAGE_PERMISSIONS"
+ />
+</navigation>