From b33bcd886532d9af7e9c80175196fbf1b8d27552 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 11 Mar 2024 00:10:12 +0100 Subject: refactor: Use internal flags in Pointers 'FLAG_LOCKED' and 'FLAG_FAKE_PTR' are only used within Pointers. Define new flags in Pointers and remove these from KeyValue. Also allows to define new flags. --- srcs/juloo.keyboard2/Keyboard2View.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/Keyboard2View.java') diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index c0ec68f..61a62e9 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -394,7 +394,7 @@ public class Keyboard2View extends View int flags = _pointers.getKeyFlags(k); if (flags != -1) { - if ((flags & KeyValue.FLAG_LOCKED) != 0) + if ((flags & Pointers.FLAG_P_LOCKED) != 0) return _theme.lockedColor; return _theme.activatedColor; } -- cgit v1.2.3