mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
open chat later, via post(new Runnable())
When during onResume() of BoardDelegate we notice an undisplayed chat message, don't add add a Chat fragment because (perhaps due to a bug in my code) it'll come up blank. Instead use post() to open it via a Runnable() that'll run after onResume() and the rest of current fragment setup have completed.
This commit is contained in:
parent
bc9b8466f5
commit
73fdb4a578
1 changed files with 6 additions and 1 deletions
|
@ -2121,7 +2121,12 @@ public class BoardDelegate extends DelegateBase
|
|||
|
||||
int flags = DBUtils.getMsgFlags( m_activity, m_rowid );
|
||||
if ( 0 != (GameSummary.MSG_FLAGS_CHAT & flags) ) {
|
||||
startChatActivity();
|
||||
post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
startChatActivity();
|
||||
}
|
||||
} );
|
||||
}
|
||||
if ( m_overNotShown ) {
|
||||
boolean auto = false;
|
||||
|
|
Loading…
Reference in a new issue