diff --git a/qmui/build.gradle b/qmui/build.gradle index 36638d680..b3d7ee5b0 100644 --- a/qmui/build.gradle +++ b/qmui/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.library' group = 'com.qmuiteam' -version = "1.1.4" // QMUI 发布到 bintray 的版本号 +version = "1.1.5" // QMUI 发布到 bintray 的版本号 //noinspection GroovyMissingReturnStatement android { diff --git a/qmuidemo/build.gradle b/qmuidemo/build.gradle index 871b76bbd..0d8567985 100644 --- a/qmuidemo/build.gradle +++ b/qmuidemo/build.gradle @@ -25,7 +25,7 @@ android { minSdkVersion parent.ext.minSdkVersion targetSdkVersion parent.ext.targetSdkVersion versionCode gitVersion - versionName "1.1.4" + versionName "1.1.5" } buildTypes { debug { diff --git a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java index 0de80317c..d4ddaa460 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java @@ -15,7 +15,8 @@ public class QDUpgradeManager { public static final int VERSION_1_1_2 = 112; public static final int VERSION_1_1_3 = 113; public static final int VERSION_1_1_4 = 114; - private static final int sCurrentVersion = VERSION_1_1_4; + public static final int VERSION_1_1_5 = 115; + private static final int sCurrentVersion = VERSION_1_1_5; private static QDUpgradeManager sQDUpgradeManager = null; private UpgradeTipTask mUpgradeTipTask; diff --git a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java index 0483661b1..1283eecc5 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java @@ -49,7 +49,24 @@ private void appendBlockSpace(Context context, SpannableStringBuilder builder) { public CharSequence getUpgradeWord(final Activity activity) { SpannableStringBuilder text = new SpannableStringBuilder(); - if (mNewVersion == QDUpgradeManager.VERSION_1_1_4) { + if (mNewVersion == QDUpgradeManager.VERSION_1_1_5) { + text.append("1. Code optimization for QMUIDialog.\n"); + appendBlockSpace(activity, text); + text.append("2. Added a return value to KeyboardVisibilityEventListener, which " + + "determines whether OnGlobalLayoutListener is deleted.\n"); + appendBlockSpace(activity, text); + text.append("3. Bug fix: getSignCount() in QMUITabSegment should return 0 " + + "if view is not visible.\n"); + appendBlockSpace(activity, text); + text.append("4. Bug fix: fixed incorrect layout of translucent status bar may " + + "appear in Android 4.4.\n"); + appendBlockSpace(activity, text); + text.append("5. Issue fixes: "); + final String[] issues = new String[]{ + "304", "308" + }; + handleIssues(activity, text, issues); + } else if (mNewVersion == QDUpgradeManager.VERSION_1_1_4) { text.append("1. Added a new widget: QMUIPriorityLinearLayout.\n"); appendBlockSpace(activity, text); text.append("2. Bug fix: marginRight does not make sense for controlling " +