fixed NPE
This commit is contained in:
parent
02787f7228
commit
0195a69568
|
@ -464,7 +464,7 @@ public class BackgroundOperationService extends IntentService implements Constan
|
|||
try {
|
||||
body = UpdateStatusTask.Companion.getBodyFromMedia(getContentResolver(), mediaUri,
|
||||
new MessageMediaUploadListener(this, mNotificationManager,
|
||||
builder, text));
|
||||
builder, text), null);
|
||||
final MediaUploadResponse uploadResp = uploadMedia(twitterUpload, body);
|
||||
final DirectMessage response = twitter.sendDirectMessage(recipientId,
|
||||
text, uploadResp.getId());
|
||||
|
|
|
@ -55,7 +55,7 @@ class GifPageFragment : CacheDownloadMediaViewerFragment() {
|
|||
}
|
||||
|
||||
override fun recycleMedia() {
|
||||
gifView.setInputSource(null)
|
||||
gifView?.setInputSource(null)
|
||||
}
|
||||
|
||||
private val media: ParcelableMedia
|
||||
|
|
Loading…
Reference in New Issue