mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-10 10:20:32 -07:00
Fix[Controls]: Color selector allowing transparent button stroke
This commit is contained in:
parent
036e76315b
commit
b9fa6b8756
2 changed files with 3 additions and 2 deletions
|
|
@ -160,6 +160,7 @@ public class ColorSelector implements HueSelectionListener, RectangleSelectionLi
|
|||
public void setAlphaEnabled(boolean alphaEnabled){
|
||||
mAlphaEnabled = alphaEnabled;
|
||||
mAlphaView.setVisibility(alphaEnabled ? View.VISIBLE : View.GONE);
|
||||
mAlphaView.setAlpha(255);
|
||||
}
|
||||
|
||||
private void notifyColorSelector(int color){
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import static net.kdt.pojavlaunch.Tools.currentDisplayMetrics;
|
|||
import android.animation.ObjectAnimator;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.Log;
|
||||
|
|
@ -168,8 +169,7 @@ public class EditControlPopup {
|
|||
}
|
||||
|
||||
mDisplayingColor = true;
|
||||
if(color != -1)
|
||||
mColorSelector.show(color);
|
||||
mColorSelector.show(color == -1 ? Color.WHITE : color);
|
||||
}
|
||||
|
||||
/** Slide out the layout */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue