Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make gradlew executable on unix and sort remote settings by name #23

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.pyload.android.client.fragments;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Map;
import java.util.Map.Entry;

Expand Down Expand Up @@ -148,8 +150,18 @@ public SettingsAdapter(pyLoadApp app) {
data = new ArrayList<Entry<String, ConfigSection>>();
}

class SettingsComparator
implements Comparator<Entry<String,ConfigSection>> {

@Override
public int compare(Entry<String, ConfigSection> lhs, Entry<String, ConfigSection> rhs) {
return lhs.getKey().compareTo(rhs.getKey());
}
}

public void setData(Map<String, ConfigSection> map) {
this.data = new ArrayList<Entry<String, ConfigSection>>(map.entrySet());
Collections.sort(data, new SettingsComparator());
notifyDataSetChanged();
}

Expand Down
Empty file modified gradlew
100644 → 100755
View file Open in desktop
Empty file.

AltStyle によって変換されたページ (->オリジナル) /