Compare commits
7 Commits
99c7e5f94d
...
6b1a82d7d0
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b1a82d7d0 | |||
| 2c502444d6 | |||
| d71e9cdf95 | |||
| b58350543a | |||
| 1cfaf17d47 | |||
| b271f63cb7 | |||
| 563e431c1d |
@@ -427,7 +427,7 @@ class MainActivity : AppCompatActivity() {
|
||||
event.quantity = (toSeconds - fromSeconds).toInt()
|
||||
onPositive()
|
||||
} else {
|
||||
Toast.makeText(this, R.string.toast_date_error, Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(applicationContext, R.string.toast_date_error, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
dialogInterface.dismiss()
|
||||
}
|
||||
@@ -602,7 +602,7 @@ class MainActivity : AppCompatActivity() {
|
||||
event.quantity = quantity
|
||||
onPositive()
|
||||
} else {
|
||||
Toast.makeText(this, R.string.toast_integer_error, Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(applicationContext, R.string.toast_integer_error, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -899,7 +899,7 @@ class MainActivity : AppCompatActivity() {
|
||||
runOnUiThread({
|
||||
setLoading(false)
|
||||
loadLogbookList()
|
||||
Toast.makeText(this@MainActivity, getString(R.string.logbook_created) + logbookName, Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(applicationContext, getString(R.string.logbook_created) + logbookName, Toast.LENGTH_SHORT).show()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1056,7 +1056,7 @@ class MainActivity : AppCompatActivity() {
|
||||
setLoading(false)
|
||||
|
||||
Toast.makeText(
|
||||
this@MainActivity,
|
||||
applicationContext,
|
||||
if (lastEventAdded != null)
|
||||
R.string.toast_event_added
|
||||
else
|
||||
@@ -1118,7 +1118,7 @@ class MainActivity : AppCompatActivity() {
|
||||
runOnUiThread({
|
||||
setLoading(false)
|
||||
|
||||
Toast.makeText(this@MainActivity, R.string.toast_event_add_error, Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(applicationContext, R.string.toast_event_add_error, Toast.LENGTH_SHORT).show()
|
||||
recyclerView.adapter?.notifyDataSetChanged()
|
||||
savingEvent(false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user