diff options
Diffstat (limited to 'org.fox.ttrss/src/main/java/org')
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java | 8 | ||||
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java index ea55b5cd..a6a3069a 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java @@ -296,7 +296,13 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe case android.R.id.home: //getSupportFragmentManager().popBackStack(); return true; - case R.id.show_feeds: + case R.id.headlines_toggle_sort_order: + SharedPreferences.Editor editor = m_prefs.edit(); + editor.putBoolean("oldest_first", !m_prefs.getBoolean("oldest_first", false)); + editor.commit(); + refresh(); + return true; + case R.id.show_feeds: setUnreadOnly(!getUnreadOnly()); initMenu(); refresh(); diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java index 2714270e..d5cc0cde 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java @@ -2,6 +2,7 @@ package org.fox.ttrss.offline; import android.annotation.SuppressLint; import android.content.Intent; +import android.content.SharedPreferences; import android.database.sqlite.SQLiteStatement; import android.os.Bundle; import android.os.Handler; @@ -131,6 +132,12 @@ public class OfflineFeedsActivity extends OfflineActivity implements OfflineHead case android.R.id.home: //getSupportFragmentManager().popBackStack(); return true; + case R.id.headlines_toggle_sort_order: + SharedPreferences.Editor editor = m_prefs.edit(); + editor.putBoolean("offline_oldest_first", !m_prefs.getBoolean("offline_oldest_first", false)); + editor.commit(); + refresh(); + return true; case R.id.show_feeds: setUnreadOnly(!getUnreadOnly()); initMenu(); |