Skip to content

Commit

Permalink
Update SensorActivity.java
Browse files Browse the repository at this point in the history
Fix #2597 Alphabetical-order-sensor
  • Loading branch information
samruddhi-Rahegaonkar committed Dec 27, 2024
1 parent 9321d17 commit d1a92ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/io/pslab/activity/SensorActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -195,6 +196,7 @@ protected void onPostExecute(Void aVoid) {
}
}
}
Collections.sort(dataName);

if (scienceLab.isConnected()) {
tvSensorScan.setText(getString(R.string.not_connected));
Expand Down

0 comments on commit d1a92ae

Please sign in to comment.