Remove stream

This commit is contained in:
NekoInverter 2020-03-05 18:20:35 +08:00
parent a83fbf11b2
commit ba3f8c4b18
No known key found for this signature in database
GPG Key ID: 280D6CCCF95715F9
2 changed files with 11 additions and 15 deletions

View File

@ -32,17 +32,16 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.browser:browser:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.2.0-alpha05'
implementation "androidx.recyclerview:recyclerview:1.2.0-alpha01"
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation "com.github.topjohnwu.libsu:core:2.5.1"
implementation 'androidx.browser:browser:1.2.0'
implementation 'com.timehop.stickyheadersrecyclerview:library:0.4.3@aar'
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
implementation 'com.google.android.material:material:1.2.0-alpha05'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.takisoft.preferencex:preferencex:1.1.0'
implementation 'com.takisoft.preferencex:preferencex-simplemenu:1.1.0'
implementation "androidx.recyclerview:recyclerview:1.2.0-alpha01"
implementation 'com.annimon:stream:1.2.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
implementation 'com.timehop.stickyheadersrecyclerview:library:0.4.3@aar'
}

View File

@ -18,7 +18,6 @@ import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.viewpager.widget.ViewPager;
import com.annimon.stream.Stream;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.tabs.TabLayout;
import com.google.gson.Gson;
@ -27,7 +26,6 @@ import org.meowcat.edxposed.manager.util.json.JSONUtils;
import org.meowcat.edxposed.manager.util.json.XposedTab;
import java.util.ArrayList;
import java.util.List;
public class EdDownloadActivity extends BaseActivity {
@ -103,12 +101,11 @@ public class EdDownloadActivity extends BaseActivity {
try {
final JSONUtils.XposedJson xposedJson = new Gson().fromJson(result, JSONUtils.XposedJson.class);
List<XposedTab> tabs = Stream.of(xposedJson.tabs)
.filter(value -> value.sdks.contains(Build.VERSION.SDK_INT)).toList();
for (XposedTab tab : tabs) {
tabsAdapter.addFragment(tab.name, BaseAdvancedInstaller.newInstance(tab));
tabsAdapter.notifyDataSetChanged();
for (XposedTab tab : xposedJson.tabs) {
if (tab.sdks.contains(Build.VERSION.SDK_INT)) {
tabsAdapter.addFragment(tab.name, BaseAdvancedInstaller.newInstance(tab));
tabsAdapter.notifyDataSetChanged();
}
}
String newApkVersion = xposedJson.apk.version;