mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
assert (on DEBUG builds) that MainActivity is never sublaunched
I think this might help catch the instance duplication I'm seeing very rarely.
This commit is contained in:
parent
0754e0db8e
commit
52d983e0d8
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ public class MainActivity extends XWActivity
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate( Bundle savedInstanceState )
|
protected void onCreate( Bundle savedInstanceState )
|
||||||
{
|
{
|
||||||
|
Assert.assertTrue(isTaskRoot() || !BuildConfig.DEBUG);
|
||||||
|
|
||||||
m_dpEnabled = XWPrefs.getIsTablet( this );
|
m_dpEnabled = XWPrefs.getIsTablet( this );
|
||||||
|
|
||||||
m_dlgt = m_dpEnabled ? new DualpaneDelegate( this, savedInstanceState )
|
m_dlgt = m_dpEnabled ? new DualpaneDelegate( this, savedInstanceState )
|
||||||
|
|
Loading…
Add table
Reference in a new issue