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";
diff --git a/app/src/main/res/layout-land/activity_lock_screen.xml b/app/src/main/res/layout-land/activity_lock_screen.xml
index d863b707..2218ce78 100644
--- a/app/src/main/res/layout-land/activity_lock_screen.xml
+++ b/app/src/main/res/layout-land/activity_lock_screen.xml
@@ -20,7 +20,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="?attr/font_family"
- android:text="Whoa there!!!"
+ android:text="@string/lock_screen_text"
android:textSize="?attr/font_20"
app:layout_constraintBottom_toTopOf="@+id/unlock_button_lock_screen_activity"
app:layout_constraintEnd_toEndOf="parent"
@@ -32,7 +32,7 @@
android:id="@+id/unlock_button_lock_screen_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Unlock"
+ android:text="@string/unlock"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/lottie_animation_view"
diff --git a/app/src/main/res/layout/activity_lock_screen.xml b/app/src/main/res/layout/activity_lock_screen.xml
index ef8ba1fb..e1e37168 100644
--- a/app/src/main/res/layout/activity_lock_screen.xml
+++ b/app/src/main/res/layout/activity_lock_screen.xml
@@ -20,7 +20,8 @@
android:id="@+id/text_view_lock_screen_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Whoa there!!!"
+ android:layout_marginTop="16dp"
+ android:text="@string/lock_screen_text"
android:textSize="?attr/font_20"
android:fontFamily="?attr/font_family"
app:layout_constraintTop_toBottomOf="@id/lottie_animation_view"
@@ -31,7 +32,8 @@
android:id="@+id/unlock_button_lock_screen_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Unlock"
+ android:layout_marginTop="16dp"
+ android:text="@string/unlock"
app:layout_constraintTop_toBottomOf="@id/text_view_lock_screen_activity"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 1fe15781..1de4ba0f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -596,6 +596,7 @@
Use Bottom Toolbar in Media Viewer
Secure Mode
Screenshot and video recording are not allowed. No preview in recent app screen.
+ Lock Screen Animation
Cannot get the link
@@ -1169,4 +1170,6 @@
Applying Material You
+ Whoa there!!!
+
diff --git a/app/src/main/res/xml/credits_preferences.xml b/app/src/main/res/xml/credits_preferences.xml
index 3578d62f..f7145096 100644
--- a/app/src/main/res/xml/credits_preferences.xml
+++ b/app/src/main/res/xml/credits_preferences.xml
@@ -56,4 +56,9 @@
app:title="@string/settings_credits_love_animation_title"
android:summary="https://lottiefiles.com/52103-love" />
+
+