Fix showSnackbar function
This commit is contained in:
@@ -28,7 +28,7 @@ internal object Utils {
|
||||
val JSON: Gson = JSON().gson
|
||||
|
||||
fun showSnackBar(activity: Activity, message: String?) {
|
||||
val rootView = activity.window.decorView.findViewById<View>(R.id.content)
|
||||
val rootView = activity.window.decorView.findViewById<View>(android.R.id.content)
|
||||
Snackbar.make(rootView, message!!, Snackbar.LENGTH_SHORT).show()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user