diff --git a/mobile/src/main/java/com/github/shadowsocks/ProfilesFragment.kt b/mobile/src/main/java/com/github/shadowsocks/ProfilesFragment.kt index a77df318..dc2a2d3c 100644 --- a/mobile/src/main/java/com/github/shadowsocks/ProfilesFragment.kt +++ b/mobile/src/main/java/com/github/shadowsocks/ProfilesFragment.kt @@ -296,7 +296,7 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener { private var selectedItem: ProfileViewHolder? = null - val profilesAdapter = ProfilesAdapter() + val profilesAdapter by lazy { ProfilesAdapter() } private lateinit var undoManager: UndoSnackbarManager private var bandwidthProfile: Int = 0 private var txTotal: Long = 0L