diff --git a/app/src/main/java/com/sevtinge/hyperceiler/ui/fragment/MainFragment.java b/app/src/main/java/com/sevtinge/hyperceiler/ui/fragment/MainFragment.java
index e151b1ac9d..4d1072c79f 100644
--- a/app/src/main/java/com/sevtinge/hyperceiler/ui/fragment/MainFragment.java
+++ b/app/src/main/java/com/sevtinge/hyperceiler/ui/fragment/MainFragment.java
@@ -54,6 +54,7 @@
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
+import java.util.Calendar;
import java.util.Objects;
import moralnorm.preference.Preference;
@@ -66,6 +67,7 @@ public class MainFragment extends SettingsPreferenceFragment implements Homepage
Preference mAod;
Preference mGuardProvider;
Preference mHeadtipWarn;
+ Preference mHeadtipBirthday;
Preference mHelpCantSeeApps;
TipsPreference mTips;
MainActivityContextHelper mainActivityContextHelper;
@@ -136,6 +138,7 @@ public void initPrefs() {
mGuardProvider = findPreference("prefs_key_guardprovider");
mTips = findPreference("prefs_key_tips");
mHeadtipWarn = findPreference("prefs_key_headtip_warn");
+ mHeadtipBirthday = findPreference("prefs_key_headtip_hyperceiler");
mHelpCantSeeApps = findPreference("prefs_key_help_cant_see_app");
mHelpCantSeeApps.setVisible(!getSharedPreferences().getBoolean("prefs_key_help_cant_see_apps_switch", false));
@@ -160,12 +163,21 @@ public void initPrefs() {
mainActivityContextHelper = new MainActivityContextHelper(requireContext());
+ isBirthday();
isOfficialRom();
if (!getIsOfficialRom()) isSignPass();
mTips = findPreference("prefs_key_tips");
}
+ public void isBirthday() {
+ Calendar calendar = Calendar.getInstance();
+ int currentMonth = calendar.get(Calendar.MONTH);
+ int currentDay = calendar.get(Calendar.DAY_OF_MONTH);
+ mHeadtipBirthday.setVisible(currentMonth == Calendar.MAY && currentDay == 1);
+
+ }
+
public void isOfficialRom() {
mHeadtipWarn.setTitle(R.string.headtip_warn_not_offical_rom);
mHeadtipWarn.setVisible(getIsOfficialRom());
diff --git a/app/src/main/res/drawable/headtip_hyperceiler_background.xml b/app/src/main/res/drawable/headtip_hyperceiler_background.xml
new file mode 100644
index 0000000000..9d4431a7d7
--- /dev/null
+++ b/app/src/main/res/drawable/headtip_hyperceiler_background.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_hyperceiler_cartoon.webp b/app/src/main/res/drawable/ic_hyperceiler_cartoon.webp
new file mode 100644
index 0000000000..8ad1c60460
Binary files /dev/null and b/app/src/main/res/drawable/ic_hyperceiler_cartoon.webp differ
diff --git a/app/src/main/res/layout/headtip_hyperceiler.xml b/app/src/main/res/layout/headtip_hyperceiler.xml
new file mode 100644
index 0000000000..c660084ca7
--- /dev/null
+++ b/app/src/main/res/layout/headtip_hyperceiler.xml
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 5a72c94f76..98e10f969d 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -1281,7 +1281,6 @@
桌面快捷方式管理
禁止提示 \"请再划一次\" Toast
固定时完全隐藏状态栏
- 如同ios的引导式访问,只能通过按键方式退出,把屏幕完全交给app。退出方式为长按电源键
将屏幕完全移交至应用,仅允许通过长按电源键退出
固定时禁止呼出侧边栏
解除固定时跳转锁屏
@@ -1731,5 +1730,6 @@
您正在使用的 ROM 来源可能并不是 Xiaomi 官方,部分功能可能会失效,详情请咨询您正在使用 ROM 的提供者。
签名校验失败,您当前使用的版本可能并非来自于 Re.chronoRain 的官方版本,可能包含恶意代码,请注意使用安全。
您可以长按或双击后选择文本进行操作,或者复制并反馈给开发者。
+ 今天是 HyperCeiler 的生日!\n感谢与您岁月相伴之恩,愿来年再续前缘,共赴风雨,携手并进!
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index d07983d9cf..e9a0c73e6e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1686,6 +1686,6 @@
Exception Message
Stack Trace
Tip: Here is the default tip. If you can see me, it means that there is a problem with HyperCeiler, please report it to the developer in a timely and effective manner.
-
Looking for something else?
+ Today is HyperCeiler\'s birthday!\nThank you for your support over the past year, and let\'s continue to work together this year!
diff --git a/app/src/main/res/xml/prefs_main.xml b/app/src/main/res/xml/prefs_main.xml
index 26fe1035e0..e138818352 100644
--- a/app/src/main/res/xml/prefs_main.xml
+++ b/app/src/main/res/xml/prefs_main.xml
@@ -2,6 +2,13 @@
+
+