mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-06-05 21:49:21 +02:00
use our own strings for OK and Cancel
This commit is contained in:
@ -31,12 +31,12 @@ class AddAppDialog() : DialogFragment() {
|
||||
recyclerView.launchers_holder.adapter = RecyclerDialogAdapter(activity, launchers)
|
||||
builder.setView(recyclerView)
|
||||
|
||||
builder.setPositiveButton(android.R.string.ok, { dialogInterface, i ->
|
||||
builder.setPositiveButton(R.string.ok, { dialogInterface, i ->
|
||||
val selectedApps = launchers.filter { it.isChecked } as ArrayList<AppLauncher>
|
||||
callback?.addLaunchers(selectedApps)
|
||||
})
|
||||
|
||||
builder.setNegativeButton(android.R.string.cancel, { dialogInterface, i ->
|
||||
builder.setNegativeButton(R.string.cancel, { dialogInterface, i ->
|
||||
callback?.updateLaunchers()
|
||||
})
|
||||
return builder.create()
|
||||
|
Reference in New Issue
Block a user