Minor fixes after rebase

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey 2022-08-31 13:08:33 +02:00 committed by Andy Scherzinger
parent 704df25a6d
commit e5879eb4be
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
3 changed files with 7 additions and 6 deletions

View File

@ -333,7 +333,7 @@ dependencies {
// implementation 'androidx.activity:activity-ktx:1.4.0'
// TODO substitute for tag after first common release
implementation 'com.github.nextcloud.android-common:ui:82f6da3e9638e7578a8df8f6e52884e2923b2760'
implementation 'com.github.nextcloud.android-common:ui:999ac56111a93bfbedf98b4d01de286d0ed03c5b'
}
task installGitHooks(type: Copy, group: "development") {

View File

@ -93,7 +93,7 @@ class GuestAccessHelper(
val builder = MaterialAlertDialogBuilder(activity)
builder.apply {
val dialogPassword = DialogPasswordBinding.inflate(LayoutInflater.from(context))
viewThemeUtils.colorEditText(dialogPassword.password)
viewThemeUtils.platform.colorEditText(dialogPassword.password)
setView(dialogPassword.root)
setTitle(R.string.nc_guest_access_password_dialog_title)
setPositiveButton(R.string.nc_ok) { _, _ ->
@ -112,9 +112,9 @@ class GuestAccessHelper(
private fun createDialog(builder: MaterialAlertDialogBuilder) {
builder.create()
viewThemeUtils.colorMaterialAlertDialogBackground(binding.conversationInfoName.context, builder)
viewThemeUtils.dialog.colorMaterialAlertDialogBackground(binding.conversationInfoName.context, builder)
val dialog = builder.show()
viewThemeUtils.colorTextButtons(
viewThemeUtils.platform.colorTextButtons(
dialog.getButton(AlertDialog.BUTTON_POSITIVE),
dialog.getButton(AlertDialog.BUTTON_NEGATIVE)
)

View File

@ -195,8 +195,9 @@ class TalkSpecificViewThemeUtils @Inject constructor(
}
private fun colorDrawable(context: Context, drawable: Drawable) {
val scheme = getScheme(context)
drawable.setTint(scheme.primary)
withScheme(context) { scheme ->
drawable.setTint(scheme.primary)
}
}
@TargetApi(Build.VERSION_CODES.O)