|
|
@ -2152,7 +2152,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (action == R.id.action_save || action == R.id.menu_encrypt) {
|
|
|
|
} else if (action == R.id.action_save || action == R.id.menu_encrypt) {
|
|
|
|
if (!BuildConfig.DEBUG || dirty) {
|
|
|
|
if (BuildConfig.DEBUG || dirty)
|
|
|
|
EntityOperation.queue(context, db, draft, EntityOperation.ADD);
|
|
|
|
EntityOperation.queue(context, db, draft, EntityOperation.ADD);
|
|
|
|
|
|
|
|
|
|
|
|
Handler handler = new Handler(context.getMainLooper());
|
|
|
|
Handler handler = new Handler(context.getMainLooper());
|
|
|
@ -2161,7 +2161,6 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
Toast.makeText(context, R.string.title_draft_saved, Toast.LENGTH_LONG).show();
|
|
|
|
Toast.makeText(context, R.string.title_draft_saved, Toast.LENGTH_LONG).show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (action == R.id.action_send) {
|
|
|
|
} else if (action == R.id.action_send) {
|
|
|
|
// Check data
|
|
|
|
// Check data
|
|
|
|