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

Commit 523d33f1 authored by Shu Chen's avatar Shu Chen
Browse files

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

Bug: 149523168
Test: locally verified.
Change-Id: I53c4be59e128a6451a9d8c847ee9d5fd295659ab
parent 6afde924
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;