Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Show ETP in private mode except PB page. Padding fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Apr 3, 2020
1 parent b04c1c8 commit 15a6751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/res/layout/navigation_url.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
android:src="@{viewmodel.isTrackingEnabled ? @drawable/ic_icon_tracking_enabled : @drawable/ic_icon_tracking_disabled}"
app:privateMode="@{viewmodel.isPrivateSession}"
android:tint="@color/fog"
app:visibleGone="@{!viewmodel.isPrivateSession && settingsViewmodel.isTrackingProtectionEnabled && !UrlUtils.isContentFeed(context, viewmodel.url.toString())}"
app:visibleGone="@{!UrlUtils.isPrivateAboutPage(context, viewmodel.url.toString()) && settingsViewmodel.isTrackingProtectionEnabled && !UrlUtils.isContentFeed(context, viewmodel.url.toString())}"
android:tooltipText="@{viewmodel.isTrackingEnabled ? @string/tracking_allowed_tooltip : @string/tracking_disabled_tooltip}" />

<LinearLayout
Expand Down Expand Up @@ -115,7 +115,7 @@
<View
android:layout_width="4dp"
android:layout_height="match_parent"
app:visibleGone="@{!UrlUtils.isHomeUri(context, viewmodel.url.toString())}"/>
app:visibleGone="@{!UrlUtils.isContentFeed(context, viewmodel.url.toString()) &amp;&amp; !UrlUtils.isPrivateAboutPage(context, viewmodel.url.toString())}"/>

</LinearLayout>

Expand All @@ -124,7 +124,7 @@
android:layout_width="15dp"
android:layout_height="match_parent"
android:layout_toEndOf="@id/startButtonsLayout"
app:visibleGone="@{((!settingsViewmodel.isTrackingProtectionEnabled || viewmodel.isPrivateSession) &amp;&amp; !viewmodel.isPopUpAvailable &amp;&amp; !viewmodel.isWebXRUsed) || viewmodel.isLibraryVisible || UrlUtils.isHomeUri(context, viewmodel.url.toString())}"/>
app:visibleGone="@{(!settingsViewmodel.isTrackingProtectionEnabled &amp;&amp; !viewmodel.isPopUpAvailable &amp;&amp; !viewmodel.isWebXRUsed) || viewmodel.isLibraryVisible || UrlUtils.isContentFeed(context, viewmodel.url.toString()) || UrlUtils.isPrivateAboutPage(context, viewmodel.url.toString())}"/>

<LinearLayout
android:id="@+id/icons"
Expand Down

0 comments on commit 15a6751

Please sign in to comment.