use our own strings for OK and Cancel

This commit is contained in:
tibbi 2016-08-21 20:41:31 +02:00
parent 3e37344e1b
commit 7af124726b

View File

@ -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()