aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-10-28 09:51:33 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-10-28 09:51:33 +0000
commitbad79c8c7df25e58ba8ef20e6d98af5ea9912b97 (patch)
treef05675b6896b2669a8d1644f1ed019f54a4d4e95 /app/src/main/java
parentd86adb72360fccdff50a7c3b0608baa9247a6b48 (diff)
downloadinfinity-for-reddit-bad79c8c7df25e58ba8ef20e6d98af5ea9912b97.tar
infinity-for-reddit-bad79c8c7df25e58ba8ef20e6d98af5ea9912b97.tar.gz
infinity-for-reddit-bad79c8c7df25e58ba8ef20e6d98af5ea9912b97.tar.bz2
infinity-for-reddit-bad79c8c7df25e58ba8ef20e6d98af5ea9912b97.tar.lz
infinity-for-reddit-bad79c8c7df25e58ba8ef20e6d98af5ea9912b97.tar.xz
infinity-for-reddit-bad79c8c7df25e58ba8ef20e6d98af5ea9912b97.tar.zst
infinity-for-reddit-bad79c8c7df25e58ba8ef20e6d98af5ea9912b97.zip
Chnage the animation for random subreddit and post. Update Credits info.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java10
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java2
2 files changed, 12 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java
index 7382df42..dc33348b 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java
@@ -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
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java
index 940cf3e3..c50de17c 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java
@@ -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";