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()
|
event.quantity = (toSeconds - fromSeconds).toInt()
|
||||||
onPositive()
|
onPositive()
|
||||||
} else {
|
} 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()
|
dialogInterface.dismiss()
|
||||||
}
|
}
|
||||||
@@ -602,7 +602,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
event.quantity = quantity
|
event.quantity = quantity
|
||||||
onPositive()
|
onPositive()
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
@@ -899,7 +899,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
runOnUiThread({
|
runOnUiThread({
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
loadLogbookList()
|
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)
|
setLoading(false)
|
||||||
|
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
this@MainActivity,
|
applicationContext,
|
||||||
if (lastEventAdded != null)
|
if (lastEventAdded != null)
|
||||||
R.string.toast_event_added
|
R.string.toast_event_added
|
||||||
else
|
else
|
||||||
@@ -1118,7 +1118,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
runOnUiThread({
|
runOnUiThread({
|
||||||
setLoading(false)
|
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()
|
recyclerView.adapter?.notifyDataSetChanged()
|
||||||
savingEvent(false)
|
savingEvent(false)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user