Skip to content

Commit

Permalink
display rssi and signal level, sort by rssi
Browse files Browse the repository at this point in the history
  • Loading branch information
r-cohen committed Mar 18, 2018
1 parent 138c6c1 commit 776434e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 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 10
versionName "1.0.9"
versionCode 11
versionName "1.0.10"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
public class BTScanSelectorBuilder {
public static void build(FragmentActivity activity, ABTScanSelectorEventsHandler handler) {
BTScanSelectorDialog dialog = new BTScanSelectorDialog();
dialog.setCancelable(true);
dialog.setEvents(handler);
dialog.show(activity.getSupportFragmentManager(), "selectbtdevice");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.phearme.btscanselector;


import android.databinding.BindingAdapter;
import android.widget.ImageView;

public class DataBindingAdapters {
@BindingAdapter("android:src")
public static void setImageResource(ImageView imageView, int resource){
imageView.setImageResource(resource);
}
}

0 comments on commit 776434e

Please sign in to comment.