Skip to content

Commit

Permalink
set dialog title
Browse files Browse the repository at this point in the history
  • Loading branch information
r-cohen committed Mar 19, 2018
1 parent 2309c5c commit 682dad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions btscanselector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 682dad0

Please sign in to comment.