diff --git a/btscanselector/build.gradle b/btscanselector/build.gradle index 2fcde43..62c5502 100644 --- a/btscanselector/build.gradle +++ b/btscanselector/build.gradle @@ -7,8 +7,8 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 26 - versionCode 16 - versionName "1.1.3" + versionCode 17 + versionName "1.1.4" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" diff --git a/btscanselector/src/main/java/com/phearme/btscanselector/BTScanSelectorDialog.java b/btscanselector/src/main/java/com/phearme/btscanselector/BTScanSelectorDialog.java index 1f1b8cc..1a97cb1 100644 --- a/btscanselector/src/main/java/com/phearme/btscanselector/BTScanSelectorDialog.java +++ b/btscanselector/src/main/java/com/phearme/btscanselector/BTScanSelectorDialog.java @@ -50,7 +50,7 @@ public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setView(view) .setCancelable(false) - .setTitle(dialogTitle) + .setTitle(dialogTitle == null ? getString(R.string.nearbyDevices) : dialogTitle) .setNeutralButton(R.string.refresh, null) .setNegativeButton(R.string.close, new DialogInterface.OnClickListener() { @Override @@ -80,7 +80,7 @@ public void setEvents(IBTScanSelectorEvents events) { } public void setTitle(String title) { - this.dialogTitle = title == null ? getString(R.string.nearbyDevices) : title; + this.dialogTitle = title; } @Override