db.endTransaction();
}
}
-
public boolean isPostingPermitted() {
return permitPosting;
}
+ public void setPostingPermitted(boolean permitPosting) {
+ this.permitPosting = permitPosting;
+ }
public String getUuid() {
return uuid;
}
if (profile == null) setTitle(R.string.app_name);
else setTitle(profile.getName());
updateLastUpdateTextFromDB();
- if (profile.isPostingPermitted()) fab.show();
- else fab.hide();
+ if (profile.isPostingPermitted()) {
+ toolbar.setSubtitle(null);
+ fab.show();
+ }
+ else {
+ toolbar.setSubtitle(R.string.profile_subitlte_read_only);
+ fab.hide();
+ }
});
});
if (mProfile != null) {
mProfile.setName(profileName.getText());
mProfile.setUrl(url.getText());
+ mProfile.setPostingPermitted(postingPermitted.isChecked());
mProfile.setAuthEnabled(useAuthentication.isChecked());
mProfile.setAuthUserName(userName.getText());
mProfile.setAuthPassword(password.getText());
<item>December</item>
</string-array>
<string name="posting_permitted">Posting of new transactions enabled</string>
+ <string name="profile_subitlte_read_only">(Read only)</string>
</resources>