mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-02-07 23:38:54 +01:00
use our own strings for OK and Cancel
This commit is contained in:
parent
3e37344e1b
commit
7af124726b
@ -31,12 +31,12 @@ class AddAppDialog() : DialogFragment() {
|
|||||||
recyclerView.launchers_holder.adapter = RecyclerDialogAdapter(activity, launchers)
|
recyclerView.launchers_holder.adapter = RecyclerDialogAdapter(activity, launchers)
|
||||||
builder.setView(recyclerView)
|
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>
|
val selectedApps = launchers.filter { it.isChecked } as ArrayList<AppLauncher>
|
||||||
callback?.addLaunchers(selectedApps)
|
callback?.addLaunchers(selectedApps)
|
||||||
})
|
})
|
||||||
|
|
||||||
builder.setNegativeButton(android.R.string.cancel, { dialogInterface, i ->
|
builder.setNegativeButton(R.string.cancel, { dialogInterface, i ->
|
||||||
callback?.updateLaunchers()
|
callback?.updateLaunchers()
|
||||||
})
|
})
|
||||||
return builder.create()
|
return builder.create()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user