Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,8 @@ public static String joinStrings(String[] a){

public void setDeviceNotStreamingView() {
String[] notStreamingMsg = new String[]{"Device not streaming", "Signals to plot can only be displayed when device is streaming"};
ArrayAdapter<String> adapter = new ArrayAdapter<String>(context, android.R.layout.simple_list_item_1, notStreamingMsg);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_list_item_1, notStreamingMsg);
setListAdapter(adapter);
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void onCharacteristicChanged(byte[] data) {

@Override
public void disconnect() {

BleManager.getInstance().disconnect(mBleDevice);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ public void onShimmerDeviceSelected(String macAddress, String deviceName) {
dynamicPlot = plotFragment.getDynamicPlot();

mService.stopStreamingAllDevices();
signalsToPlotFragment.setDeviceNotStreamingView();
}

@Override
Expand Down