don't resize custom chat background when keyboard up
This commit is contained in:
parent
9e3bda20a8
commit
8c70dfda68
1 changed files with 2 additions and 2 deletions
|
@ -2547,12 +2547,12 @@ public class ConversationFragment extends XmppFragment
|
|||
@Override
|
||||
public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition<? super Bitmap> transition) {
|
||||
Drawable dr = new BitmapDrawable(resource);
|
||||
binding.conversationsFragment.setBackgroundDrawable(dr);
|
||||
getActivity().getWindow().setBackgroundDrawable(dr);
|
||||
// Possibly runOnUiThread()
|
||||
}
|
||||
});
|
||||
} else {
|
||||
binding.conversationsFragment.setBackground(ContextCompat.getDrawable(activity, R.drawable.chatbg));
|
||||
getActivity().getWindow().setBackgroundDrawable(ContextCompat.getDrawable(activity, R.drawable.chatbg));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue