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

Commit e5568e21 authored by septs's avatar septs Committed by Peter Cai
Browse files

feat: hide fab on scroll profile list (#281)

parent 639c1d0e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -119,6 +119,11 @@ open class EuiccManagementFragment : Fragment(), EuiccProfilesChangedListener,
            }
        ))

        profileList.addOnScrollListener(object : RecyclerView.OnScrollListener() {
            override fun onScrollStateChanged(view: RecyclerView, newState: Int) =
                if (newState == RecyclerView.SCROLL_STATE_IDLE) fab.show() else fab.hide()
        })

        return view
    }

@@ -318,7 +323,7 @@ open class EuiccManagementFragment : Fragment(), EuiccProfilesChangedListener,
        popup.menu.findItem(R.id.delete).isVisible = false

        // We hide the disable option by default to avoid "bricking" some cards that won't get
        // recognized again by the phone's modem. However we don't have that worry if we are
        // recognized again by the phone's modem. However, we don't have that worry if we are
        // accessing it through a USB card reader, or when the user explicitly opted in
        if (!isUsb && !disableSafeguardFlow.value) return
        popup.menu.findItem(R.id.disable).isVisible = true
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@
        android:layout_marginBottom="16dp"
        android:contentDescription="@string/profile_download"
        android:src="@drawable/ic_add"
        android:tooltipText="@string/profile_download"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintRight_toRightOf="parent" />