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

Commit e3e6c53

Browse files
committed
remove Toast from kill application click listener
1 parent 70b24c4 commit e3e6c53

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import android.view.View
1313
import android.view.ViewGroup
1414
import android.widget.Button
1515
import android.widget.TextView
16-
import android.widget.Toast
1716
import androidx.core.app.NotificationCompat
1817
import androidx.core.content.ContextCompat
1918
import androidx.lifecycle.*
@@ -146,7 +145,13 @@ class DashboardFragment : Fragment() {
146145
buttonAppRestart.isEnabled = false
147146
HomeFragment.appIsBeingKilled()
148147

149-
Toast.makeText(context, "Killing Application", Toast.LENGTH_LONG).show()
148+
showMessage(
149+
DashMessage(
150+
"Application is being killed",
151+
R.drawable.dash_message_color_red,
152+
10_000
153+
)
154+
)
150155

151156
TorServiceController.appEventBroadcaster?.let {
152157
(it as MyEventBroadcaster).liveTorState.observe(owner, Observer { data ->

0 commit comments

Comments
 (0)