|
|
@@ -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
|