提交 c1673a2c 编写于 作者: B Blankj

see 10/19 log

上级 96539fb7
{}
\ No newline at end of file
plugins {
id "com.android.application"
// id "com.blankj.bus"
id "com.blankj.bus"
}
// in config.gradle
configAndroidDomain project
......
......@@ -8,6 +8,7 @@ buildscript {
dependencies {
classpath depConfig.gradle
classpath 'com.blankj:bus-gradle-plugin:1.0'
// classpath depConfig.kotlin_gradle_plugin
}
}
......
......@@ -12,8 +12,8 @@ ext {
versionConfig = [
// plugin
gradle : '3.2.0',
kotlin : '1.2.30',
gradle : '3.2.1',
kotlin : '1.2.71',
// lib
support : '27.1.1',
constraint : '1.0.2',
......@@ -37,7 +37,7 @@ ext {
design : "com.android.support:design:$versionConfig.support",
],
constraint : "com.android.support.constraint:constraint-layout:$versionConfig.constraint",
kotlin_stdlib_jdk7 : "org.jetbrains.kotlin:kotlin-stdlib-jdk7",
kotlin_stdlib_jdk7 : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versionConfig.kotlin",
leakcanary : [
android : "com.squareup.leakcanary:leakcanary-android:$versionConfig.leakcanary",
android_no_op: "com.squareup.leakcanary:leakcanary-android-no-op:$versionConfig.leakcanary",
......
......@@ -4,6 +4,7 @@ plugins {
id "com.jfrog.bintray" version "1.8.0"
id "tech.harmonysoft.oss.traute" version "1.1.8"
id "readme-core"
// id "kotlin-android"
}
// in config.gradle
configAndroidDomain project
......
......@@ -1341,11 +1341,12 @@ public final class FragmentUtils {
* @param fm The manager of fragment.
*/
public static void popAll(@NonNull final FragmentManager fm, final boolean isImmediate) {
while (fm.getBackStackEntryCount() > 0) {
if (fm.getBackStackEntryCount() > 0) {
FragmentManager.BackStackEntry entry = fm.getBackStackEntryAt(0);
if (isImmediate) {
fm.popBackStackImmediate();
fm.popBackStackImmediate(entry.getId(), FragmentManager.POP_BACK_STACK_INCLUSIVE);
} else {
fm.popBackStack();
fm.popBackStack(entry.getId(), FragmentManager.POP_BACK_STACK_INCLUSIVE);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册