From 73fdb4a578dbee5b00caca0686aaf9b8b6477431 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 26 Jul 2016 09:34:32 -0700 Subject: [PATCH] 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. --- .../XWords4/src/org/eehouse/android/xw4/BoardDelegate.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardDelegate.java index 9d3b857fd..3c8cc7db9 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardDelegate.java @@ -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;