diff --git a/app/build.gradle b/app/build.gradle index b561506a..ea575304 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "no.nordicsemi.android.nrftoolbox" minSdkVersion 18 targetSdkVersion 24 - versionCode 50 - versionName "1.18.3" + versionCode 51 + versionName "1.18.4" } buildTypes { release { @@ -45,7 +45,7 @@ dependencies { wearApp project(':wear') // The DFU Library is imported automatically from jcenter. - compile 'no.nordicsemi.android:dfu:1.0.3' + compile 'no.nordicsemi.android:dfu:1.0.4' // If you want to make some changes in the DFU Library, clone the https://github.com/NordicSemiconductor/Android-DFU-Library project into DFULibrary folder, // add it as a module in Project Structure and uncomment the following line: diff --git a/app/src/main/java/no/nordicsemi/android/nrftoolbox/dfu/DfuActivity.java b/app/src/main/java/no/nordicsemi/android/nrftoolbox/dfu/DfuActivity.java index 41760162..75094aa3 100644 --- a/app/src/main/java/no/nordicsemi/android/nrftoolbox/dfu/DfuActivity.java +++ b/app/src/main/java/no/nordicsemi/android/nrftoolbox/dfu/DfuActivity.java @@ -38,6 +38,7 @@ import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.database.Cursor; import android.net.Uri; +import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.preference.PreferenceManager; @@ -673,10 +674,22 @@ public class DfuActivity extends AppCompatActivity implements LoaderCallbacks 200) { + if (valueInt > 200 && Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { new AlertDialog.Builder(getActivity()).setMessage(R.string.dfu_settings_dfu_number_of_packets_info).setTitle(R.string.dfu_settings_dfu_information) .setPositiveButton(R.string.ok, null) .show(); diff --git a/app/src/main/res/xml/settings_dfu.xml b/app/src/main/res/xml/settings_dfu.xml index dcd59be5..8e381cde 100644 --- a/app/src/main/res/xml/settings_dfu.xml +++ b/app/src/main/res/xml/settings_dfu.xml @@ -30,7 +30,7 @@ android:title="@string/dfu_settings_dfu_packets_receipt_notification_label" />