Skip to content

Commit

Permalink
feat: added role to toolbar title
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp committed Aug 14, 2024
1 parent 4bf73dc commit 10c82c9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ package com.owncloud.android.ui.activity
import android.view.Menu
import android.view.View
import android.view.View.VISIBLE
import android.widget.Button
import android.widget.EditText
import android.widget.ImageView
import android.widget.TextView
Expand All @@ -36,6 +37,7 @@ import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import com.owncloud.android.R
import com.owncloud.android.extensions.setAccessibilityRole
import com.owncloud.android.presentation.accounts.ManageAccountsDialogFragment
import com.owncloud.android.presentation.accounts.ManageAccountsDialogFragment.Companion.MANAGE_ACCOUNTS_DIALOG
import com.owncloud.android.presentation.authentication.AccountUtils
Expand Down Expand Up @@ -93,6 +95,7 @@ abstract class ToolbarActivity : BaseActivity() {
toolbarTitle.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0)
}
}
toolbarTitle.setAccessibilityRole(className = Button::class.java)

searchView.apply {
isVisible = false
Expand Down

0 comments on commit 10c82c9

Please sign in to comment.