Skip to content

Commit

Permalink
fix: whiteboard editor icon is glay on App bar
Browse files Browse the repository at this point in the history
  • Loading branch information
snowtimeglass authored and lukstbit committed Jan 21, 2025
1 parent 5dfb8a8 commit a9b9529
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions AnkiDroid/src/main/java/com/ichi2/anki/Reviewer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import androidx.appcompat.widget.Toolbar
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.lifecycle.lifecycleScope
import androidx.vectordrawable.graphics.drawable.VectorDrawableCompat
import anki.frontend.SetSchedulingStatesRequest
import com.google.android.material.color.MaterialColors
import com.google.android.material.snackbar.Snackbar
Expand Down Expand Up @@ -818,14 +817,7 @@ open class Reviewer :
}
val whiteboardIcon = ContextCompat.getDrawable(applicationContext, R.drawable.ic_gesture_white)!!.mutate()
val stylusIcon = ContextCompat.getDrawable(this, R.drawable.ic_gesture_stylus)!!.mutate()
val whiteboardColorPaletteIcon =
VectorDrawableCompat
.create(
resources,
R.drawable.ic_color_lens_white_24dp,
this.theme,
)!!
.mutate()
val whiteboardColorPaletteIcon = ContextCompat.getDrawable(applicationContext, R.drawable.ic_color_lens_white_24dp)!!.mutate()
if (showWhiteboard) {
whiteboardIcon.alpha = Themes.ALPHA_ICON_ENABLED_LIGHT
hideWhiteboardIcon.icon = whiteboardIcon
Expand Down

0 comments on commit a9b9529

Please sign in to comment.