Skip to content

Commit

Permalink
handle read-only mode in boolean attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
SteRiccio committed Apr 3, 2024
1 parent 157b758 commit 5cf802a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public boolean hasChanged() {

@Override
protected void updateEditableState() {
radioGroup.setEnabled(!isRecordEditLocked());
super.updateEditableState();
boolean editable = !isRecordEditLocked();
for (int i = 0; i < radioGroup.getChildCount(); i++) {
radioGroup.getChildAt(i).setEnabled(editable);
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Tue Apr 02 23:11:11 CEST 2024
currentVersionCode=224
currentVersionCode=223
currentVersionName=1.7.11
org.gradle.jvmargs=-Xmx1536M
android.enableJetifier=true
Expand Down

0 comments on commit 5cf802a

Please sign in to comment.