forked from geode-sdk/android-launcher
impl showDialog
This commit is contained in:
2 files changed
+14
-1
No files matched your search
@@ -14,6 +14,7 @@ import android.util.Log
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.FrameLayout
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.core.view.WindowCompat
|
||||
import androidx.core.view.WindowInsetsCompat
|
||||
@@ -230,7 +231,14 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
|
||||
}
|
||||
|
||||
override fun showDialog(title: String, message: String) {
|
||||
TODO("Not yet implemented")
|
||||
runOnUiThread {
|
||||
AlertDialog.Builder(this)
|
||||
.setTitle(title)
|
||||
.setMessage(message)
|
||||
// the button shouldn't do anything but close
|
||||
.setPositiveButton(R.string.message_box_accept) { _, _ -> }
|
||||
.show()
|
||||
}
|
||||
}
|
||||
|
||||
override fun showEditTextDialog(
|
||||
|
||||
Reference in new issue
Block a user