Skip to content

Commit

Permalink
Classic Status: avoid duplicate notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorham committed Jan 20, 2017
1 parent 37ff74f commit 673462a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void onActivityCreated(Bundle savedInstanceState) {
current_device = (TextView) v.findViewById(R.id.remembered_device);

notes = (TextView) v.findViewById(R.id.other_notes);
notes.setText("");


restart_collection_service = (Button) v.findViewById(R.id.restart_collection_service);
forget_device = (Button) v.findViewById(R.id.forget_device);
Expand Down Expand Up @@ -123,6 +123,7 @@ public void onActivityCreated(Bundle savedInstanceState) {
//}

private void set_current_values() {
notes.setText("");
activeBluetoothDevice = ActiveBluetoothDevice.first();
mBluetoothManager = (BluetoothManager) safeGetContext().getSystemService(Context.BLUETOOTH_SERVICE);
setVersionName();
Expand Down Expand Up @@ -307,6 +308,7 @@ private void setConnectionStatus() {

private void setNotes() {
try {

if ((mBluetoothManager == null) || ((android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) && (mBluetoothManager.getAdapter() == null))) {
notes.append("\n- This device does not seem to support bluetooth");
} else {
Expand Down

0 comments on commit 673462a

Please sign in to comment.