Simplification

This commit is contained in:
M66B
2022-12-09 08:59:13 +01:00
parent 3889d99903
commit 1e886e7241
4 changed files with 12 additions and 8 deletions

View File

@@ -123,7 +123,7 @@ public class StyleHelper {
View.OnClickListener styleListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
StyleHelper.apply(-1, v.getId(), owner, v, etBody);
StyleHelper.apply(v.getId(), owner, v, etBody);
}
};
@@ -345,6 +345,10 @@ public class StyleHelper {
};
}
static boolean apply(int itemId, LifecycleOwner owner, View anchor, EditText etBody, Object... args) {
return apply(-1, itemId, owner, anchor, etBody, args);
}
static boolean apply(int groupId, int itemId, LifecycleOwner owner, View anchor, EditText etBody, Object... args) {
Log.i("Style action=" + groupId + ":" + itemId);