Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc5ec512 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

Issue 656: changed handling some visibility from "gone" to "invisible"

parent 95eb5269
Loading
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -776,16 +776,15 @@ class ApplicationFragment : TimeoutFragment(R.layout.fragment_application) {
     * layout contents.
     */
    private fun togglePrivacyInfo(visible: Boolean) {
        val visibility = if (visible) View.VISIBLE else View.INVISIBLE
        binding.privacyInclude.run {
            (if (visible) View.VISIBLE else View.INVISIBLE).run {
                appPermissions.visibility = this
                appTrackers.visibility = this
            }
            appPermissions.visibility = visibility
            appTrackers.visibility = visibility
            loadingBar.isVisible = !visible
        }
        binding.ratingsInclude.appPrivacyScoreLayout.run {
            findViewById<View>(R.id.loadingBar).isVisible = !visible
            findViewById<View>(R.id.appPrivacyScore).isVisible = visible
            findViewById<View>(R.id.appPrivacyScore).visibility = visibility
        }
    }

+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@
                android:text="@string/not_available"
                android:textColor="?android:textColorPrimary"
                android:textSize="25sp"
                android:visibility="gone"
                android:visibility="invisible"
                app:layout_constraintBottom_toTopOf="@+id/materialTextView2"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toEndOf="@+id/loadingBar"