do not update the back arrow at contextual menu

This commit is contained in:
tibbi 2022-04-04 22:54:57 +02:00
parent d8a0479340
commit 6c3bec93a5

View file

@ -214,7 +214,7 @@ abstract class BaseSimpleActivity : AppCompatActivity() {
}
}
if (updateHomeAsUpColor) {
if (updateHomeAsUpColor && !isContextualMenu) {
val drawableId = if (useCrossAsBack) R.drawable.ic_cross_vector else R.drawable.ic_arrow_left_vector
val icon = resources.getColoredDrawableWithColor(drawableId, color)
supportActionBar?.setHomeAsUpIndicator(icon)