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
Honor sort in episode list view in Android Auto #6756
Honor sort in episode list view in Android Auto #6756
Conversation
Isn't the issue about the "all epsiodes" list? (not that we shouldn't also fix it here) |
Ah, you are right. In this single PR I have fixed respecting the sort for all Episodes and feed episodes in Android Auto @ByteHamster could I move the preferences for AllEpisodesFragment into UserPreferences so that I can access it via PlaybackService.java? Otherwise, I'm not sure how I could get the preference from |
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.
Thanks! Some comments below :)
} | ||
|
||
@Override | ||
protected int loadTotalItemCount() { | ||
return DBReader.getTotalEpisodeCount(getFilter()); | ||
} | ||
|
||
|
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.
Unrelated change
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.
fixed
} | ||
|
||
@Override | ||
protected String getFragmentTag() { | ||
return TAG; | ||
} | ||
|
||
@Override | ||
protected String getPrefName() { | ||
return PREF_NAME; |
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.
I think this should stay, that's where the parent class stores the scroll position
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.
Thank you, I learned something new
storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java
Outdated
Show resolved
Hide resolved
@@ -867,4 +872,22 @@ public static void setSubscriptionsFilter(SubscriptionsFilter value) { | |||
public static boolean shouldShowSubscriptionTitle() { | |||
return prefs.getBoolean(PREF_SUBSCRIPTION_TITLE, false); | |||
} | |||
|
|||
public static void setAllEpisodeSortOrder(SortOrder s) { |
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.
Not setAllEpisodesSortOrder
(episodeS)?
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.
good catch
storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java
Show resolved
Hide resolved
ready for another round of reviews |
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.
One more round of review :)
app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java
Outdated
Show resolved
Hide resolved
app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java
Outdated
Show resolved
Hide resolved
app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java
Outdated
Show resolved
Hide resolved
core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
Outdated
Show resolved
Hide resolved
storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java
Outdated
Show resolved
Hide resolved
storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java
Outdated
Show resolved
Hide resolved
…pgrader.java Co-authored-by: ByteHamster <ByteHamster@users.noreply.github.com>
…pgrader.java Co-authored-by: ByteHamster <ByteHamster@users.noreply.github.com>
…PlaybackService.java Co-authored-by: ByteHamster <ByteHamster@users.noreply.github.com>
…/preferences/UserPreferences.java Co-authored-by: ByteHamster <ByteHamster@users.noreply.github.com>
…/preferences/UserPreferences.java Co-authored-by: ByteHamster <ByteHamster@users.noreply.github.com>
…pgrader.java Co-authored-by: ByteHamster <ByteHamster@users.noreply.github.com>
Ready for one more round. |
Thanks! |
Fix #6752
Honor sort order in all episode list as well as episode list per feed view in Android Auto
This is the new preference for the AllEpisodesFragment in order for this preference to be shared
/data/data/de.danoeh.antennapod.debug/shared_prefs/de.danoeh.antennapod.debug_preferences.xml