use camel-case for variables

This commit is contained in:
B. Petersen
2019-06-23 16:39:53 +02:00
parent b186a3fbd4
commit c0d2f75c6d
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
<PreferenceCategory android:layout="@layout/preference_divider" />
<PreferenceCategory android:title="Experimenta l features">
<PreferenceCategory android:title="Experimental features">
<Preference android:key="pref_empty_server_folders"
android:title="Empty server folders" />
@@ -287,19 +287,19 @@ public class AdvancedPreferenceFragment extends ListSummaryPreferenceFragment
@Override
public boolean onPreferenceClick(Preference preference) {
View gl = View.inflate(getActivity(), R.layout.empty_folder_options, null);
CheckBox inboxCb = gl.findViewById(R.id.empty_inbox_folder);
CheckBox mvboxCb = gl.findViewById(R.id.empty_deltachat_folder);
new AlertDialog.Builder(getActivity())
.setTitle("Empty server folders")
.setMessage("This function helps to free space on your server by deleting ALL e-mails and chat-messages in the given folders. Messages on this device will not be deleted.")
.setMessage("This function helps to free space on your IMAP server by deleting ALL e-mails and chat-messages in the given folders. Messages on this device will not be deleted.\n\nThe deletion cannot be undone!")
.setView(gl)
.setNegativeButton(R.string.cancel, null)
.setPositiveButton("Delete messages", (dialog, which) -> {
int flags = 0;
CheckBox cb = gl.findViewById(R.id.empty_inbox_folder);
if (cb!=null && cb.isChecked()) {
if (inboxCb!=null && inboxCb.isChecked()) {
flags |= DcContext.DC_EMPTY_INBOX;
}
cb = gl.findViewById(R.id.empty_deltachat_folder);
if (cb!=null && cb.isChecked()) {
if (mvboxCb!=null && mvboxCb.isChecked()) {
flags |= DcContext.DC_EMPTY_MVBOX;
}
if (flags!=0) {