feeds fragment: use order_id for categories
This commit is contained in:
parent
f729a6ced7
commit
39140ba3ee
@ -4,7 +4,7 @@ buildscript {
|
|||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.2'
|
classpath 'com.android.tools.build:gradle:2.3.3'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
|
||||||
package="org.fox.ttrss"
|
package="org.fox.ttrss"
|
||||||
android:versionCode="447"
|
android:versionCode="448"
|
||||||
android:versionName="1.213">
|
android:versionName="1.214">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
|
@ -204,8 +204,14 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compare(Feed a, Feed b) {
|
public int compare(Feed a, Feed b) {
|
||||||
|
Log.d(TAG, "A:" + a.title + " " + a.is_cat + " " + a.order_id);
|
||||||
|
Log.d(TAG, "B:" + b.title + " " + b.is_cat + " " + b.order_id);
|
||||||
|
|
||||||
if (a.id >= 0 && b.id >= 0)
|
if (a.id >= 0 && b.id >= 0)
|
||||||
if (a.is_cat && b.is_cat)
|
if (a.is_cat && b.is_cat)
|
||||||
|
if (a.order_id != 0 && b.order_id != 0)
|
||||||
|
return a.order_id - b.order_id;
|
||||||
|
else
|
||||||
return a.title.toUpperCase().compareTo(b.title.toUpperCase());
|
return a.title.toUpperCase().compareTo(b.title.toUpperCase());
|
||||||
else if (a.is_cat && !b.is_cat)
|
else if (a.is_cat && !b.is_cat)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user