|
|
|
@ -7,6 +7,7 @@ import android.net.Uri;
|
|
|
|
|
import android.support.annotation.NonNull;
|
|
|
|
|
import android.support.annotation.Nullable;
|
|
|
|
|
import android.support.v7.app.AlertDialog;
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
import android.webkit.MimeTypeMap;
|
|
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
|
@ -188,10 +189,9 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
|
|
|
|
|
Toast.LENGTH_LONG).show();
|
|
|
|
|
break;
|
|
|
|
|
case SUCCESS:
|
|
|
|
|
Toast.makeText(context,
|
|
|
|
|
context.getResources().getString(R.string.SaveAttachmentTask_saved_to,
|
|
|
|
|
result.second()),
|
|
|
|
|
Toast.LENGTH_LONG).show();
|
|
|
|
|
String message = !TextUtils.isEmpty(result.second()) ? context.getResources().getString(R.string.SaveAttachmentTask_saved_to, result.second())
|
|
|
|
|
: context.getResources().getString(R.string.SaveAttachmentTask_saved);
|
|
|
|
|
Toast.makeText(context, message, Toast.LENGTH_LONG).show();
|
|
|
|
|
break;
|
|
|
|
|
case WRITE_ACCESS_FAILURE:
|
|
|
|
|
Toast.makeText(context, R.string.ConversationFragment_unable_to_write_to_sd_card_exclamation,
|
|
|
|
|