mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2026-05-09 18:11:26 +08:00
fix test build
This commit is contained in:
@@ -18,7 +18,6 @@ import com.github.kr328.clash.design.util.applyFrom
|
||||
import com.github.kr328.clash.design.util.layoutInflater
|
||||
import com.github.kr328.clash.design.util.resolveThemedColor
|
||||
import com.github.kr328.clash.design.util.root
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import com.google.android.material.tabs.TabLayoutMediator
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
@@ -84,22 +83,6 @@ class ProxyDesign(
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun requestDonate() {
|
||||
withContext(Dispatchers.Main) {
|
||||
val title = context.getText(R.string.request_donate)
|
||||
val message = context.getText(R.string.request_donate_tips)
|
||||
|
||||
if (title.isNotEmpty() && message.isNotEmpty()) {
|
||||
MaterialAlertDialogBuilder(context)
|
||||
.setTitle(R.string.request_donate)
|
||||
.setMessage(R.string.request_donate_tips)
|
||||
.setPositiveButton(R.string.ok) { _, _ -> }
|
||||
.setCancelable(true)
|
||||
.show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun showModeSwitchTips() {
|
||||
withContext(Dispatchers.Main) {
|
||||
Toast.makeText(context, R.string.mode_switch_tips, Toast.LENGTH_LONG).show()
|
||||
|
||||
Reference in New Issue
Block a user