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

Commit 4790f87b authored by Peter Cai's avatar Peter Cai
Browse files

ui: Prevent users from doing multiple things at once

parent a29b0680
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -254,6 +254,9 @@ open class EuiccManagementFragment : Fragment(), EuiccProfilesChangedListener,
        }

        private fun showOptionsMenu() {
            // Prevent users from doing multiple things at once
            if (invalid || swipeRefresh.isRefreshing) return

            PopupMenu(root.context, profileMenu).apply {
                setOnMenuItemClickListener(::onMenuItemClicked)
                populatePopupWithProfileActions(this, profile)