diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWActivity.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWActivity.java index c43a4a17d..e2a2f2a65 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWActivity.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWActivity.java @@ -62,7 +62,7 @@ public class XWActivity extends FragmentActivity super.onCreate( savedInstanceState ); Assert.assertNotNull( dlgt ); m_dlgt = dlgt; - Assert.assertTrue( getApplicationContext() == XWApp.getContext() ); + Assert.assertTrueNR( getApplicationContext() == XWApp.getContext() ); // Looks like there's an Oreo-only bug if ( setOrientation && Build.VERSION_CODES.O != Build.VERSION.SDK_INT ) { diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java index ec011d8fa..604b998c3 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java @@ -140,7 +140,7 @@ public class XWApp extends Application public static Context getContext() { - Assert.assertNotNull( s_context ); + Assert.assertTrueNR( null != s_context ); return s_context; } }