mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-25 14:35:40 +03:00
Fix a crash with older Nc versions
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
7c275ccfbf
commit
7930c97dee
1 changed files with 8 additions and 1 deletions
|
@ -291,7 +291,14 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||
} else {
|
||||
conversationIntent.putExtras(bundle);
|
||||
startActivity(conversationIntent);
|
||||
new Handler().postDelayed(() -> getRouter().popCurrentController(), 100);
|
||||
new Handler().postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (!isDestroyed() && !isBeingDestroyed()) {
|
||||
getRouter().popCurrentController();
|
||||
}
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue