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:
Eric House 2016-07-26 09:34:32 -07:00
parent bc9b8466f5
commit 73fdb4a578

View file

@ -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;