mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
Prevent crash
This commit is contained in:
parent
3f92947e56
commit
56a04294c3
1 changed files with 4 additions and 1 deletions
|
@ -1978,8 +1978,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
private boolean onReply(String action) {
|
||||
if (values.containsKey("expanded") && values.get("expanded").size() > 0) {
|
||||
Context context = getContext();
|
||||
if (context == null)
|
||||
return false;
|
||||
long id = values.get("expanded").get(0);
|
||||
Intent reply = new Intent(getContext(), ActivityCompose.class)
|
||||
Intent reply = new Intent(context, ActivityCompose.class)
|
||||
.putExtra("action", action)
|
||||
.putExtra("reference", id);
|
||||
startActivity(reply);
|
||||
|
|
Loading…
Reference in a new issue