mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-02-27 00:33:56 +01:00
Chnage the animation for random subreddit and post. Update Credits info.
This commit is contained in:
parent
d86adb7236
commit
bad79c8c7d
@ -35,6 +35,7 @@ public class CreditsPreferenceFragment extends PreferenceFragmentCompat {
|
||||
Preference bestRocketIconPreference = findPreference(SharedPreferencesUtils.BEST_ROCKET_ICON_KEY);
|
||||
Preference materialIconsPreference = findPreference(SharedPreferencesUtils.MATERIAL_ICONS_KEY);
|
||||
Preference nationalFlagsPreference = findPreference(SharedPreferencesUtils.NATIONAL_FLAGS);
|
||||
Preference ufoAndCowPreference = findPreference(SharedPreferencesUtils.UFO_CAPTURING_ANIMATION);
|
||||
|
||||
if (iconForegroundPreference != null) {
|
||||
iconForegroundPreference.setOnPreferenceClickListener(preference -> {
|
||||
@ -116,6 +117,15 @@ public class CreditsPreferenceFragment extends PreferenceFragmentCompat {
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
if (ufoAndCowPreference != null) {
|
||||
ufoAndCowPreference.setOnPreferenceClickListener(preference -> {
|
||||
Intent intent = new Intent(activity, LinkResolverActivity.class);
|
||||
intent.setData(Uri.parse("https://lottiefiles.com/33858-ufo-capturing-animation"));
|
||||
startActivity(intent);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -137,6 +137,8 @@ public class SharedPreferencesUtils {
|
||||
public static final String NATIONAL_FLAGS = "national_flags";
|
||||
public static final String RESPECT_SUBREDDIT_RECOMMENDED_COMMENT_SORT_TYPE = "respect_subreddit_recommended_comment_sort_type";
|
||||
public static final String SUBREDDIT_FILTER_POPULAR_AND_ALL = "subreddit_filter_popular_and_all";
|
||||
public static final String UFO_CAPTURING_ANIMATION = "ufo_capturing_animation";
|
||||
|
||||
|
||||
public static final String MAIN_PAGE_TABS_SHARED_PREFERENCES_FILE = "ml.docilealligator.infinityforreddit.main_page_tabs";
|
||||
public static final String MAIN_PAGE_TAB_COUNT = "_main_page_tab_count";
|
||||
|
@ -14,6 +14,7 @@
|
||||
android:layout_centerInParent="true"
|
||||
app:lottie_autoPlay="true"
|
||||
app:lottie_loop="true"
|
||||
app:lottie_speed="5"
|
||||
app:lottie_rawRes="@raw/random_subreddit_or_post" />
|
||||
|
||||
</RelativeLayout>
|
File diff suppressed because one or more lines are too long
@ -501,6 +501,7 @@
|
||||
<string name="settings_filter_title">Filter</string>
|
||||
<string name="settings_subreddit_filter_category">Hide Subreddits</string>
|
||||
<string name="settings_subreddit_filter_popular_and_all">In r/popular and r/all</string>
|
||||
<string name="settings_credits_ufo_capturing_animation_title">UFO Capturing Animation</string>
|
||||
|
||||
<string name="no_link_available">Cannot get the link</string>
|
||||
|
||||
|
@ -46,4 +46,9 @@
|
||||
app:title="@string/settings_credits_national_flags"
|
||||
android:summary="@string/settings_credits_national_flags_summary" />
|
||||
|
||||
<Preference
|
||||
app:key="ufo_capturing_animation"
|
||||
app:title="@string/settings_credits_ufo_capturing_animation_title"
|
||||
android:summary="https://lottiefiles.com/33858-ufo-capturing-animation" />
|
||||
|
||||
</PreferenceScreen>
|
||||
|
Loading…
x
Reference in New Issue
Block a user