Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 70b24c4

Browse files
committed
disable the kill app button instead of making invisible when clicked
1 parent 0103c5d commit 70b24c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sampleapp/src/main/java/io/matthewnelson/sampleapp/ui/fragments/dashboard/DashboardFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class DashboardFragment : Fragment() {
143143

144144
private fun initButtons(context: Context, owner: LifecycleOwner) {
145145
buttonAppRestart.setOnClickListener {
146-
buttonAppRestart.visibility = View.GONE
146+
buttonAppRestart.isEnabled = false
147147
HomeFragment.appIsBeingKilled()
148148

149149
Toast.makeText(context, "Killing Application", Toast.LENGTH_LONG).show()

0 commit comments

Comments
 (0)