-
Notifications
You must be signed in to change notification settings - Fork 730
Add sort by Wi-Fi Standard option to AccessPoints view #604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
2e12f36
dd1c0a5
f184ee0
0008fcd
8c6f3c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,13 +35,15 @@ | |
| <string-array name="sort_by_index_array" translatable="false"> | ||
| <item>0</item> | ||
| <item>1</item> | ||
| <item>2</item> | ||
| <item>2</item> | ||
| <item>3</item> | ||
| </string-array> | ||
|
Comment on lines
35
to
40
|
||
|
|
||
| <string-array name="sort_by_array"> | ||
| <item>@string/sort_by_signal_strength</item> | ||
| <item>@string/sort_by_ssid</item> | ||
| <item>@string/sort_by_channel</item> | ||
| <item>@string/sort_by_channel</item> | ||
| <item>@string/sort_by_standard</item> | ||
| </string-array> | ||
|
Comment on lines
42
to
47
|
||
|
|
||
| <string-array name="connection_view_index_array" translatable="false"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -171,6 +171,7 @@ | |||||
| <string name="security_wps" translatable="false">"WPS"</string> | ||||||
| <string name="selected_menu_key" translatable="false">"selected_menu"</string> | ||||||
| <string name="sort_by_channel">"Channel"</string> | ||||||
| <string name="sort_by_standard" translatable="false">"Standard"</string> | ||||||
|
||||||
| <string name="sort_by_standard" translatable="false">"Standard"</string> | |
| <string name="sort_by_standard">"Standard"</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sortByStandard()currently sorts bywiFiStandardIddescending, which will place 802.11ad (id=7) ahead of 802.11ax (id=6). This doesn’t match the PR description’s stated Wi‑Fi generation order (7 → 6 → 5 → 4 → Legacy → Unknown). Consider defining an explicit ranking (e.g., mappingWiFiStandardto a sort key) so the sort order matches the intended UX, and treat 11ad/WiGig explicitly (either between 7 and 6 by design, or below 6).