kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix drafts not loading in bubbled conversations.
rodzic
41a7560e76
commit
a444a96dc9
|
@ -85,7 +85,7 @@ public class ConversationIntents {
|
|||
return bundle;
|
||||
}
|
||||
|
||||
private static boolean isBubbleIntentUri(@Nullable Uri uri) {
|
||||
static boolean isBubbleIntentUri(@Nullable Uri uri) {
|
||||
return uri != null && Objects.equals(uri.getAuthority(), BUBBLE_AUTHORITY);
|
||||
}
|
||||
|
||||
|
|
|
@ -1659,7 +1659,7 @@ public class ConversationParentFragment extends Fragment
|
|||
return setMedia(draftMedia, draftMediaType);
|
||||
}
|
||||
|
||||
if (draftText == null && draftMedia == null && draftMediaType == null) {
|
||||
if (draftText == null && (draftMedia == null || ConversationIntents.isBubbleIntentUri(draftMedia)) && draftMediaType == null) {
|
||||
Log.d(TAG, "Initializing draft from database");
|
||||
return initializeDraftFromDatabase();
|
||||
} else {
|
||||
|
|
Ładowanie…
Reference in New Issue