Matthew Finkel pushed to branch tor-browser-85.1.0-10.5-1 at The Tor Project / Applications / fenix
Commits: a6c84e3e by Matthew Finkel at 2021-01-27T18:00:31+00:00 squash! Modify UI/UX
Bug 40141: Hide EME site permission
- - - - -
3 changed files:
- app/src/main/res/layout/quicksettings_permissions.xml - app/src/main/res/xml/site_permissions_details_exceptions_preferences.xml - app/src/main/res/xml/site_permissions_preferences.xml
Changes:
===================================== app/src/main/res/layout/quicksettings_permissions.xml ===================================== @@ -148,7 +148,7 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/mediaKeySystemAccessStatus" app:layout_constraintStart_toStartOf="parent" - tools:visibility="visible" /> + tools:visibility="gone" />
<TextView android:id="@+id/mediaKeySystemAccessStatus" @@ -160,6 +160,6 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/mediaKeySystemAccessLabel" tools:text="@string/preference_option_phone_feature_blocked" - tools:visibility="visible" /> + tools:visibility="gone" />
</androidx.constraintlayout.widget.ConstraintLayout>
===================================== app/src/main/res/xml/site_permissions_details_exceptions_preferences.xml ===================================== @@ -3,7 +3,8 @@ - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> <androidx.preference.PreferenceScreen - xmlns:android="http://schemas.android.com/apk/res/android%22%3E + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" > <androidx.preference.Preference android:icon="@drawable/ic_camera_enabled" android:key="@string/pref_key_phone_feature_camera" @@ -38,6 +39,7 @@ android:icon="@drawable/ic_link" android:key="@string/pref_key_browser_feature_media_key_system_access" android:title="@string/preference_phone_feature_media_key_system_access" + app:isPreferenceVisible="false" android:summary="@string/preference_option_phone_feature_ask_to_allow"/>
<androidx.preference.Preference
===================================== app/src/main/res/xml/site_permissions_preferences.xml ===================================== @@ -48,6 +48,7 @@ android:key="@string/pref_key_browser_feature_media_key_system_access" android:title="@string/preference_phone_feature_media_key_system_access" android:summary="@string/preference_option_phone_feature_ask_to_allow" + app:isPreferenceVisible="false" app:allowDividerBelow="true"/>
<androidx.preference.Preference
View it on GitLab: https://gitlab.torproject.org/tpo/applications/fenix/-/commit/a6c84e3e91a7cd...
tbb-commits@lists.torproject.org