mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Who ate the cake?
This commit is contained in:
parent
623962d9c0
commit
121456cc8c
1 changed files with 8 additions and 1 deletions
|
@ -54,6 +54,7 @@ import android.provider.MediaStore;
|
||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
import android.security.KeyChain;
|
import android.security.KeyChain;
|
||||||
import android.security.KeyChainException;
|
import android.security.KeyChainException;
|
||||||
|
import android.system.ErrnoException;
|
||||||
import android.text.Editable;
|
import android.text.Editable;
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
import android.text.SpannableStringBuilder;
|
import android.text.SpannableStringBuilder;
|
||||||
|
@ -205,6 +206,7 @@ import biweekly.property.Organizer;
|
||||||
import static android.app.Activity.RESULT_CANCELED;
|
import static android.app.Activity.RESULT_CANCELED;
|
||||||
import static android.app.Activity.RESULT_FIRST_USER;
|
import static android.app.Activity.RESULT_FIRST_USER;
|
||||||
import static android.app.Activity.RESULT_OK;
|
import static android.app.Activity.RESULT_OK;
|
||||||
|
import static android.system.OsConstants.ENOSPC;
|
||||||
import static android.widget.AdapterView.INVALID_POSITION;
|
import static android.widget.AdapterView.INVALID_POSITION;
|
||||||
|
|
||||||
public class FragmentCompose extends FragmentBase {
|
public class FragmentCompose extends FragmentBase {
|
||||||
|
@ -2270,9 +2272,14 @@ public class FragmentCompose extends FragmentBase {
|
||||||
else if (ex instanceof IllegalArgumentException || ex instanceof FileNotFoundException)
|
else if (ex instanceof IllegalArgumentException || ex instanceof FileNotFoundException)
|
||||||
Snackbar.make(view, ex.toString(), Snackbar.LENGTH_LONG)
|
Snackbar.make(view, ex.toString(), Snackbar.LENGTH_LONG)
|
||||||
.setGestureInsetBottomIgnored(true).show();
|
.setGestureInsetBottomIgnored(true).show();
|
||||||
else
|
else {
|
||||||
|
if (ex instanceof IOException &&
|
||||||
|
ex.getCause() instanceof ErrnoException &&
|
||||||
|
((ErrnoException) ex.getCause()).errno == ENOSPC)
|
||||||
|
ex = new Throwable(getContext().getString(R.string.app_cake), ex);
|
||||||
Log.unexpectedError(getParentFragmentManager(), ex);
|
Log.unexpectedError(getParentFragmentManager(), ex);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}.execute(this, args, "compose:attachment:add");
|
}.execute(this, args, "compose:attachment:add");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue