Skip to content

Commit

Permalink
fix: Consider ordering list of sensors alphabetically #2597 (#2599)
Browse files Browse the repository at this point in the history
Co-authored-by: Anashuman Singh <[email protected]>
Co-authored-by: Anashuman Singh <[email protected]>
  • Loading branch information
3 people authored Jan 12, 2025
1 parent 4e8938b commit 2a5d0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/io/pslab/activity/SensorActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ protected void onPostExecute(Void aVoid) {
if (detectedSensors == null || detectedSensors.isEmpty()) {
tvSensorScan.setText(getString(R.string.not_connected));
}

dataName.sort(String::compareTo);
adapter.notifyDataSetChanged();
buttonSensorAutoScan.setClickable(true);
}
Expand Down

0 comments on commit 2a5d0d5

Please sign in to comment.