OSDN Git Service

Remove the usage of junit.framework.Assert oreo-x86 pie-x86 android-x86-8.1-r1 android-x86-8.1-r2 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-8.1-r5 android-x86-8.1-r6 android-x86-9.0-r1 android-x86-9.0-r2
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 1 Mar 2018 06:58:38 +0000 (14:58 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 1 Mar 2018 06:58:38 +0000 (14:58 +0800)
It's not buildable in Android 8.0.

Widgets/src/com/koushikdutta/widgets/ListContentFragmentInternal.java

index 53c57f1..727f3f9 100644 (file)
@@ -16,7 +16,6 @@
 
 package com.koushikdutta.widgets;
 
-import junit.framework.Assert;
 import android.annotation.SuppressLint;
 import android.app.Activity;
 import android.content.res.Configuration;
@@ -154,9 +153,7 @@ public class ListContentFragmentInternal extends BetterListFragmentInternal {
             FragmentTransaction ft = fa.getSupportFragmentManager().beginTransaction();
             if (isPaged()) {
                 View v = getFragment().getView();
-                Assert.assertNotNull(v);
                 final View l = v.findViewById(R.id.list_fragment);
-                Assert.assertNotNull(l);
                 l.setVisibility(View.GONE);
                 fm.addOnBackStackChangedListener(new OnBackStackChangedListener() {
                     {