Skip to content

1 feature and fix#1831

Open
meilluer wants to merge 1 commit intoDocile-Alligator:masterfrom
meilluer:feature/Added-tonggle-to-force-autoplay-on-datasaving
Open

1 feature and fix#1831
meilluer wants to merge 1 commit intoDocile-Alligator:masterfrom
meilluer:feature/Added-tonggle-to-force-autoplay-on-datasaving

Conversation

@meilluer
Copy link

@meilluer meilluer commented Sep 6, 2025

Added:Button to force autoplay on data-saving
Fixed:Posts being hidden on profile page when "hide read post" is enabled

Fixed:Posts being hidden on profile page when "hide read post" is enabled
@meilluer
Copy link
Author

meilluer commented Sep 6, 2025

Since now users can set custom quality for autoplaying videos it best to let them choose if they want auto play or not with data saving

Comment on lines +55 to +59
<ml.docilealligator.infinityforreddit.customviews.preference.CustomFontPreference
app:title="API Keys"
app:icon="@drawable/ic_security_day_night_24dp"
app:fragment="ml.docilealligator.infinityforreddit.settings.ApiKeysPreferenceFragment" />

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't add custom API key support to Infinity.

Comment on lines +555 to +558
<string name="settings_data_saving_mode_info_summary">In data saving mode:
Preview images are in lower resolution.
Reddit videos are in lower resolution.
Video autoplay is disabled.</string>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is \n getting removed here?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is for custom API key support, right? Infinity can't have that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sorry that is correct you can remove that

Comment on lines +307 to +310
boolean overrideVideoAutoplay = sharedPreferences.getBoolean(SharedPreferencesUtils.OVERRIDE_VIDEO_AUTOPLAY_IN_DATA_SAVING_MODE, false);
if (overrideVideoAutoplay) {
mAutoplay = true;
} else if (autoplayString.equals(SharedPreferencesUtils.VIDEO_AUTOPLAY_VALUE_ALWAYS_ON)) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if you override the autoplay setting in data saving mode, you still need to check if it's in wifi or data.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ? If we override that , i.e videos should always autoplay regardless of it being on data or wifi ? I have build and tested it and it works just fine

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because if the users don't care about data usage, then they won't enable data saving mode in the first place. And what's the point of force enabling it in data saving while the setting is turned off in settings->videos?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because if the users don't care about data usage, then they won't enable data saving mode in the first place. And what's the point of force enabling it in data saving while the setting is turned off in settings->videos?

For users who want more granular control over data usage , can have this meaning they want to minimise data usage without sacrificing convince of autoplay so it's optional. Also for settings->autoplay one that only enables auto if data saving is disabled. Again it's just a option that user can use if so they wish let me know if want anything changed other than api which I will soon change and create a new PR

@meilluer
Copy link
Author

meilluer commented Sep 28, 2025

@Docile-Alligator any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants