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

This commit is contained in:
Shu Chen
2020-02-14 05:50:33 +00:00
committed by Android (Google) Code Review

View File

@@ -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;