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

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

Issue 656: Rename togglePrivacyInfo to togglePrivacyInfoVisibility

parent 39fc1170
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ class ApplicationFragment : TimeoutFragment(R.layout.fragment_application) {
         */
        val it = resultPair.first

        togglePrivacyInfo(false)
        togglePrivacyInfoVisibility(false)

        isDetailsLoaded = true
        if (applicationViewModel.appStatus.value == null) {
@@ -769,7 +769,7 @@ class ApplicationFragment : TimeoutFragment(R.layout.fragment_application) {
            )
            appPrivacyScore.compoundDrawablePadding = 15
        }
        togglePrivacyInfo(true)
        togglePrivacyInfoVisibility(true)
    }

    /**
@@ -781,7 +781,7 @@ class ApplicationFragment : TimeoutFragment(R.layout.fragment_application) {
     * @param visible Boolean to toggle visibility of loading progress bar or the
     * layout contents.
     */
    private fun togglePrivacyInfo(visible: Boolean) {
    private fun togglePrivacyInfoVisibility(visible: Boolean) {
        val visibility = if (visible) View.VISIBLE else View.INVISIBLE
        binding.privacyInclude.run {
            appPermissions.visibility = visibility