You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the list of channel users is not sorted in any way making it difficult to browse and select a user. In my opinion, this list should be sorted alphabetically.
Here is a tiny patch for this fix:
diff --git a/src/org/yaaic/activity/UsersActivity.java b/src/org/yaaic/activity/UsersActivity.java
index 4a527df..5d7aed1 100644
--- a/src/org/yaaic/activity/UsersActivity.java
+++ b/src/org/yaaic/activity/UsersActivity.java
@@ -32,6 +32,8 @@ import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.AdapterView.OnItemClickListener;
+import java.util.Arrays;
+
/**
* User Activity - Shows a list of users in the current channel
*
@@ -51,6 +53,7 @@ public class UsersActivity extends ListActivity implements OnItemClickListener
setContentView(R.layout.users);
String[] users = getIntent().getExtras().getStringArray(Extra.USERS);
+ Arrays.sort(users, String.CASE_INSENSITIVE_ORDER);
getListView().setAdapter(new ArrayAdapter(this, R.layout.useritem, users));
getListView().setOnItemClickListener(this);
}
The text was updated successfully, but these errors were encountered:
Currently, the list of channel users is not sorted in any way making it difficult to browse and select a user. In my opinion, this list should be sorted alphabetically.
Here is a tiny patch for this fix:
The text was updated successfully, but these errors were encountered: