Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a48bc0b authored by Shu Chen's avatar Shu Chen Committed by Android (Google) Code Review
Browse files

Merge "Fixes the opacity value for the insertion handle to range {0..255}."

parents 0cf9ed29 523d33f1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5271,6 +5271,8 @@ public class Editor {
                if (opacity < 10 || opacity > 100) {
                    opacity = 50;
                }
                // Converts the opacity value from range {0..100} to {0..255}.
                opacity = opacity * 255 / 100;
            }
            mDeltaHeight = deltaHeight;
            mDrawableOpacity = opacity;