Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-koush-Widgets: Commit

external/koush/Widgets


Commit MetaInfo

Revisión438a214b762085773783f14c51d30274f23d14c7 (tree)
Tiempo2018-03-01 15:58:38
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Remove the usage of junit.framework.Assert

It's not buildable in Android 8.0.

Cambiar Resumen

Diferencia

--- a/Widgets/src/com/koushikdutta/widgets/ListContentFragmentInternal.java
+++ b/Widgets/src/com/koushikdutta/widgets/ListContentFragmentInternal.java
@@ -16,7 +16,6 @@
1616
1717 package com.koushikdutta.widgets;
1818
19-import junit.framework.Assert;
2019 import android.annotation.SuppressLint;
2120 import android.app.Activity;
2221 import android.content.res.Configuration;
@@ -154,9 +153,7 @@ public class ListContentFragmentInternal extends BetterListFragmentInternal {
154153 FragmentTransaction ft = fa.getSupportFragmentManager().beginTransaction();
155154 if (isPaged()) {
156155 View v = getFragment().getView();
157- Assert.assertNotNull(v);
158156 final View l = v.findViewById(R.id.list_fragment);
159- Assert.assertNotNull(l);
160157 l.setVisibility(View.GONE);
161158 fm.addOnBackStackChangedListener(new OnBackStackChangedListener() {
162159 {
Show on old repository browser