Compare commits
7 Commits
6b1a82d7d0
...
99c7e5f94d
| Author | SHA1 | Date | |
|---|---|---|---|
| 99c7e5f94d | |||
| aa2347f802 | |||
| 367f092ff3 | |||
| d258fcd1cb | |||
| c0f90b55bc | |||
| f34d7c4291 | |||
| d4a80c275a |
@@ -427,7 +427,7 @@ class MainActivity : AppCompatActivity() {
|
||||
event.quantity = (toSeconds - fromSeconds).toInt()
|
||||
onPositive()
|
||||
} else {
|
||||
Toast.makeText(applicationContext, R.string.toast_date_error, Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this, 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(applicationContext, R.string.toast_integer_error, Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this, R.string.toast_integer_error, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -899,7 +899,7 @@ class MainActivity : AppCompatActivity() {
|
||||
runOnUiThread({
|
||||
setLoading(false)
|
||||
loadLogbookList()
|
||||
Toast.makeText(applicationContext, getString(R.string.logbook_created) + logbookName, Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this@MainActivity, getString(R.string.logbook_created) + logbookName, Toast.LENGTH_SHORT).show()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1056,7 +1056,7 @@ class MainActivity : AppCompatActivity() {
|
||||
setLoading(false)
|
||||
|
||||
Toast.makeText(
|
||||
applicationContext,
|
||||
this@MainActivity,
|
||||
if (lastEventAdded != null)
|
||||
R.string.toast_event_added
|
||||
else
|
||||
@@ -1118,7 +1118,7 @@ class MainActivity : AppCompatActivity() {
|
||||
runOnUiThread({
|
||||
setLoading(false)
|
||||
|
||||
Toast.makeText(applicationContext, R.string.toast_event_add_error, Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this@MainActivity, R.string.toast_event_add_error, Toast.LENGTH_SHORT).show()
|
||||
recyclerView.adapter?.notifyDataSetChanged()
|
||||
savingEvent(false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user