Closed pateras01 closed 4 years ago
Hello there @pateras01
I've been trying to replicate your issue, but it's hard without knowing the details of your implementation.
I believe attachment should be uploaded straight to the conversation after you select it in another app. That leads me to believe chatwindow never receives the callback.
Here are some pointers on what I think is worth investigating:
onActivityResult
in your Fragment instead of listening for results in MainActivity? Is that possible to check with your current implementation?HelpOnLineFragment
instance is the current one and has not been recreated when switching between the apps?ChatWindowActivity
or ChatWindowFragment
? If any of the tips above will not bring you to a solution, I would need more details to be able to recreate your problem.
Ideally a minimum reproducible code sample.
If that is not possible, could you explain how App.screen.contentGetCurrent();
works and what Fragment AppFragment
extends from?
Hi, I am implement ChatWindowView in own Fragment. Problem is resolved. Code in onActivityResult function must be in Fragment, it does not work in Activity.
If i push button for sending attachment, dialog for select atachment is opened, but atachment is not sent after push button for sending. If we try push button several times and repaet his operation, dialog is not opened. I have to chat close and open once more.
Code in main activity: protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data);
}
Code in my fragment: public class HelpOnLineFragment extends AppFragment implements ChatWindowView.ChatWindowEventsListener {
}