aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-09-03 07:15:44 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-09-03 07:15:44 +0000
commitc37d372b8154e5eaffbd5618e636528c50ed191b (patch)
treea890c344c2e90daf73f1344fffd6c1082c30b06b /app/src/main/java/ml
parent39b5beb5c5face6ea7d40e4473ec1df650335833 (diff)
downloadinfinity-for-reddit-c37d372b8154e5eaffbd5618e636528c50ed191b.tar
infinity-for-reddit-c37d372b8154e5eaffbd5618e636528c50ed191b.tar.gz
infinity-for-reddit-c37d372b8154e5eaffbd5618e636528c50ed191b.tar.bz2
infinity-for-reddit-c37d372b8154e5eaffbd5618e636528c50ed191b.tar.lz
infinity-for-reddit-c37d372b8154e5eaffbd5618e636528c50ed191b.tar.xz
infinity-for-reddit-c37d372b8154e5eaffbd5618e636528c50ed191b.tar.zst
infinity-for-reddit-c37d372b8154e5eaffbd5618e636528c50ed191b.zip
Update Credits page.
Diffstat (limited to 'app/src/main/java/ml')
-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.java1
2 files changed, 11 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 0ad8ad65..5ae530f2 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/settings/CreditsPreferenceFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/settings/CreditsPreferenceFragment.java
@@ -37,6 +37,7 @@ public class CreditsPreferenceFragment extends PreferenceFragmentCompat {
Preference nationalFlagsPreference = findPreference(SharedPreferencesUtils.NATIONAL_FLAGS);
Preference ufoAndCowPreference = findPreference(SharedPreferencesUtils.UFO_CAPTURING_ANIMATION);
Preference loveAnimationPreference = findPreference(SharedPreferencesUtils.LOVE_ANIMATION);
+ Preference lockScreenPreference = findPreference(SharedPreferencesUtils.LOCK_SCREEN_ANIMATION);
if (iconForegroundPreference != null) {
iconForegroundPreference.setOnPreferenceClickListener(preference -> {
@@ -136,6 +137,15 @@ public class CreditsPreferenceFragment extends PreferenceFragmentCompat {
return true;
});
}
+
+ if (lockScreenPreference != null) {
+ lockScreenPreference.setOnPreferenceClickListener(preference -> {
+ Intent intent = new Intent(activity, LinkResolverActivity.class);
+ intent.setData(Uri.parse("https://lottiefiles.com/69178-cool"));
+ 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 f3247d99..7760f465 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/SharedPreferencesUtils.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/SharedPreferencesUtils.java
@@ -187,6 +187,7 @@ public class SharedPreferencesUtils {
public static final String DEFAULT_LINK_POST_LAYOUT_KEY = "default_link_post_layout";
public static final String USE_BOTTOM_TOOLBAR_IN_MEDIA_VIEWER = "use_bottom_toolbar_in_media_viewer";
public static final String SECURE_MODE = "secure_mode";
+ public static final String LOCK_SCREEN_ANIMATION = "lock_screen_animation";
public static final String DEFAULT_PREFERENCES_FILE = "ml.docilealligator.infinityforreddit_preferences";
public static final String MAIN_PAGE_TABS_SHARED_PREFERENCES_FILE = "ml.docilealligator.infinityforreddit.main_page_tabs";