mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-01-10 15:02:34 +01:00
update the stroke width bar color on app launch too in some cases
This commit is contained in:
parent
a0cf18b0b6
commit
9f02a0557c
@ -94,6 +94,10 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
|||||||
stroke_width_preview.beVisibleIf(isShowBrushSizeEnabled)
|
stroke_width_preview.beVisibleIf(isShowBrushSizeEnabled)
|
||||||
my_canvas.setAllowZooming(config.allowZoomingCanvas)
|
my_canvas.setAllowZooming(config.allowZoomingCanvas)
|
||||||
updateTextColors(main_holder)
|
updateTextColors(main_holder)
|
||||||
|
if (isBlackAndWhiteTheme()) {
|
||||||
|
stroke_width_bar.setColors(0, config.canvasBackgroundColor.getContrastColor(), 0)
|
||||||
|
}
|
||||||
|
|
||||||
if (config.preventPhoneFromSleeping) {
|
if (config.preventPhoneFromSleeping) {
|
||||||
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user