diff options
author | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2021-08-31 15:44:35 +0000 |
---|---|---|
committer | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2021-08-31 15:44:35 +0000 |
commit | c8a8c2b13b6584c696ca3a5ae8aad843ea5de185 (patch) | |
tree | f41acb8f401ff2d2cfd946f91bd0b6da0c1f0f43 /app/src/main/res | |
parent | daea2f9510ac1af22a4e2e2f3db7c2d6d314008b (diff) | |
parent | 5d0524a838149fda58c64c83ce0adfd64db0e96a (diff) |
Merge branch 'feature/ipscrambling' into 'master'
Feature/ipscrambling
See merge request e/privacy-central/privacycentralapp!7
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/fragment_internet_activity_policy.xml | 84 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 9 |
2 files changed, 91 insertions, 2 deletions
diff --git a/app/src/main/res/layout/fragment_internet_activity_policy.xml b/app/src/main/res/layout/fragment_internet_activity_policy.xml index c3021df..12094ab 100644 --- a/app/src/main/res/layout/fragment_internet_activity_policy.xml +++ b/app/src/main/res/layout/fragment_internet_activity_policy.xml @@ -11,11 +11,14 @@ <androidx.core.widget.NestedScrollView android:layout_height="match_parent" - android:layout_marginBottom="32dp" android:layout_width="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" > - + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + > <LinearLayout android:layout_height="match_parent" android:layout_width="match_parent" @@ -97,6 +100,83 @@ android:textSize="14sp" /> </RadioGroup> + <TextView android:id="@+id/ipscrambling_tor_status" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:paddingTop="24dp" + android:text="@string/ipscrambling_is_starting" + android:textColor="@color/black" + android:textSize="16sp" + android:visibility="gone" + /> + + <ProgressBar + android:id="@+id/ipscrambling_loading" + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_margin="24dp" + android:layout_gravity="center" + /> + + <LinearLayout + android:id="@+id/ipscrambling_location" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingTop="32dp" + > + <TextView + android:id="@+id/ipscrambling_location_label" + android:layout_height="wrap_content" + android:layout_width="wrap_content" android:text="@string/ipscrambling_location_label" + android:textColor="@color/black" + android:textSize="16sp" + /> + <Spinner android:id="@+id/ipscrambling_select_location" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + /> + </LinearLayout> + + <TextView + android:id="@+id/ipscrambling_activated" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:paddingTop="32dp" + android:text="@string/ipscrambling_all_apps_scrambled" + android:textColor="@color/black" + android:paddingBottom="8dp" + android:textSize="16sp" + android:visibility="gone" + /> + </LinearLayout> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recycler_view_scrambled" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="gone" + /> + <TextView + android:id="@+id/ipscrambling_select_apps" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:paddingTop="32dp" + android:paddingBottom="8dp" + android:text="@string/ipscrambling_select_app" + android:textColor="@color/black" + android:textSize="16sp" + android:visibility="gone" + /> + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recycler_view_to_select" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" + /> </LinearLayout> </androidx.core.widget.NestedScrollView> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3105ddb..d18ccf5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -28,6 +28,15 @@ <string name="hidden_ip">Hide IP address</string> <string name="i_am_anonymous">I am anonymous on the internet</string> <string name="i_am_exposing">I am exposing my real IP address</string> + <string name="ipscrambling_all_apps_scrambled">All apps use hidden IP</string> + <string name="ipscrambling_only_selected_apps_scrambled">Only the following apps use hidden IP</string> + <string name="ipscrambling_select_app">Select Apps to hide IP</string> + <string name="ipscrambling_is_starting">Tor is starting...</string> + <string name="ipscrambling_is_stopping">Tor is stopping...</string> + <string name="ipscrambling_location_label">Hidden IP\'s location</string> + <string name="ipscrambling_any_location">any</string> + + ipscrambling_any_location <string name="permission_control_info">Manage and control apps requesting various permissions.</string> <string name="apps_allowed">%1$d of %2$d apps allowed</string> |