mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-29 05:11:01 +00:00
fix: clean up some warnings
This commit is contained in:
@@ -367,7 +367,7 @@ class DatePickerFragment(activity: Activity, var date: FuzzyDate = FuzzyDate().g
|
||||
dialog.setButton(
|
||||
DialogInterface.BUTTON_NEUTRAL,
|
||||
activity.getString(R.string.remove)
|
||||
) { dialog, which ->
|
||||
) { _, which ->
|
||||
if (which == DialogInterface.BUTTON_NEUTRAL) {
|
||||
date = FuzzyDate()
|
||||
}
|
||||
@@ -1025,7 +1025,7 @@ class EmptyAdapter(private val count: Int) : RecyclerView.Adapter<RecyclerView.V
|
||||
}
|
||||
|
||||
fun getAppString(res: Int): String {
|
||||
return currContext()!!.getString(res) ?: ""
|
||||
return currContext()?.getString(res) ?: ""
|
||||
}
|
||||
|
||||
fun toast(string: String?) {
|
||||
|
||||
Reference in New Issue
Block a user