Skip to content

Commit

Permalink
Christmas surprise update
Browse files Browse the repository at this point in the history
(to make it secret I didn't commit until now lol)
- Re-organised settings
- Remove original reboot, screenshot and toggle airplane mode menu item
- Changed implementation in Anti-Theft Protection (remove relevant
objects from mItems instead of replacing onPress()). Now should also
disable the toggle airplane mode menu item
- Changed implementation in determining positions to add menu items.
- Updated Russian translations (Thanks greatslon)
- And more importantly - Christmas Easter Eggs!
  • Loading branch information
kennethso168 committed Dec 28, 2013
1 parent 705b0f2 commit 32707f6
Show file tree
Hide file tree
Showing 19 changed files with 194 additions and 59 deletions.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="hk.kennethso168.xposed.advancedrebootmenu"
android:versionCode="12"
android:versionName="7.1" >
android:versionCode="13"
android:versionName="8.0.1" >

<uses-sdk
android:minSdkVersion="14"
Expand Down
Binary file added res/drawable-hdpi/ic_device_locked.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_device_locked_color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_device_locked_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_device_locked.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_device_locked_color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_device_locked_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_device_locked.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_device_locked_color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_device_locked_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_device_locked.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_device_locked_color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_device_locked_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,18 @@
<string name="quick_dial_number">Номер быстрого набора</string>
<string name="quick_dial_note">Оставьте пустым для отключения функции</string>
<string name="disabled">Отключено</string>
<string name="mobile_data_on">Включить мобильный интернет</string>
<string name="mobile_data_off">Выключить мобильный интернет</string>
<string name="expand_statusbar_title">Развернуть строку состояния</string>
<string name="expand_statusbar_summ">Добавить опцию открытия строки состояния</string>
<string name="data_toggle">Вкл/выкл мобильный интернет</string>
<string name="data_toggle_summ">Добавить опцию переключения мобильного интернета</string>
<string name="no_locked_off_title">Анти-вор</string>
<string name="no_locked_off_summ">Отключить выключение и перезагрузку при заблокированном экране</string>
<string name="no_locked_off_dialog">Вы не можете выключить телефон, т.к. включён режим "Анти-вот". Пожалуйста разблокируйте телефон и повторите попытку.</string>
<string name="readme_title">Копирайт и отказ от ответственности</string>
<string name="readme_content">Копирайт © 2013 So Kei Hong. Все права защищены.\n\nПРОГРАММА ПОСТОВЛЯЕТСЯ \"КАК ЕСТЬ \", БЕЗ ГАРАНТИЙ ЛЮБОГО РОДА, ЯВНЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, АВТОРЫ ИЛИ ВЛАДЕЛЬЦЫ АВТОРСКИХ ПРАВ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЕТЕНЗИИ, ИЛИ УБЫТКИ.</string>
<string name="email_note_title">Примечание для писем</string>
<string name="email_note_content">Каждый день, меня переполняет тонн писем (не связанных с этим приложением). Поэтому, пожалуйста, внимание на следующие моменты, прежде чем посылать мне сообщения.\n1. Я скорее всего увижу ваше сообщение при отправе через личные сообщения на XDA\n2. Пожалуйста ознакомьтесь с \"What can you do if the app doesn\'t work / if issue happens?\" перед отправкой мне писем (можно найти в Xposed Installer > Download > Advanced Power Menu)\n3. Пожалуйста начинайте своё сообщение с [APM], чтобы я мог легче сортировать свою почту. Спасибо.\n4.Обратите внимание, что я не могу решить проблему с недостаточной информацией. Я также ИГНОРИРУЮ любые сообщения с пустым "телом письма" (Я использую gmail).\n5. Я понимаю только Английский и Китайский языки.\nБлагодарю за сотрудничество.</string>

</resources>
22 changes: 17 additions & 5 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,44 @@
<string name="mobile_data_on">Enable mobile data</string>
<string name="mobile_data_off">Disable mobile data</string>

<!-- Anti-theft helper -->
<string name="no_locked_off_dialog">Because anti-theft helper is on, you may not power off the phone or disable mobile data while the device is locked. Unlock the device and try again.</string>
<!-- Christmas Easter Egg -->
<string name="device_is_locked">Merry Christmas</string>

<!-- Preference Screen -->
<string name="note_title">Note</string>
<string name="note_summ">You may need to reboot for changes to take effect</string>
<string name="sect_menu_options">Power Menu Options</string>
<string name="modify_menu_items">Modify power menu items&#8230;</string>
<string name="sect_reboot_item">Reboot menu item</string>
<string name="enable_reboot_title">Advanced reboot</string>
<string name="enable_reboot_summ">Add/replace the reboot option which allows different reboot methods</string>
<string name="sect_add_items">Add menu items</string>
<string name="enable_screenshot_title">Screenshot</string>
<string name="enable_screenshot_summ">Add the option which enables screenshot functionality if none originally exists</string>
<string name="confirm_dialog_title">Confirmation dialogs</string>
<string name="quick_dial_number">Quick dial number</string>
<string name="quick_dial_note">Leave blank to disable this feature</string>
<string name="disabled">Disabled</string>
<string name="icon_color_title">Color theme for icons</string>
<string name="reboot_methods_title">Reboot methods to show</string>
<string name="reboot_methods_title">Reboot methods to show&#8230;</string>
<string name="expand_statusbar_title">Expand status bar</string>
<string name="expand_statusbar_summ">Add the option which expands the status bar</string>
<string name="data_toggle">Toggle mobile data</string>
<string name="data_toggle_summ">Add the option which toggles mobile data connection</string>
<string name="sect_remove_items">Remove menu items</string>
<!-- Do not translate or include the "default" strings in other languages -->
<string name="confirm_dialog_default">0</string>
<string name="icon_color_title_default">0</string>
<string name="no_locked_off_title">Anti-theft helper</string>

<!-- TODO add back airplane mode -->
<string name="no_locked_off_summ">Disable shutdown and reboot functions while the device is still at the lockscreen and not yet unlocked</string>
<string name="no_locked_off_dialog">Because anti-theft helper is on, you may not power off the phone while the device is locked. Unlock the device and try again.</string>
<string name="no_locked_off_summ">Disable shutdown, reboot, airplane mode toggle and mobile data toggle functions while the device is still at the lockscreen and not yet unlocked</string>
<string name="remove_reboot_title">Remove reboot item</string>
<string name="remove_reboot_summ">Remove the original reboot item if it exists and advanced reboot is turned off</string>
<string name="remove_screenshot_title">Remove screenshot item</string>
<string name="remove_screenshot_summ">Remove the original screenshot item if it exists and screenshot is disabled in the \'Add menu items\' section</string>
<string name="remove_airplane_title">Remove airplane mode toggle item</string>
<string name="remove_airplane_summ">Remove the original airplane mode toggle item if it exists</string>

<string name="sect_debug">App Options</string>
<string name="verbose_log_title">Verbose logging</string>
Expand Down
34 changes: 25 additions & 9 deletions res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<Preference android:title="@string/note_title" android:summary="@string/note_summ" android:key="pref_note"></Preference>
<PreferenceCategory android:title="@string/sect_menu_options" android:key="pref_menu_options">
<CheckBoxPreference android:summary="@string/enable_reboot_summ" android:key="pref_enable_reboot" android:title="@string/enable_reboot_title" android:defaultValue="true"/>
<ListPreference android:entries="@array/confirm_dialog" android:key="pref_confirm_dialog" android:title="@string/confirm_dialog_title" android:defaultValue="@string/confirm_dialog_default" android:entryValues="@array/confirm_dialog_values" />


<CheckBoxPreference android:summary="@string/no_locked_off_summ" android:title="@string/no_locked_off_title" android:key="pref_no_locked_off" android:defaultValue="false"/>
<PreferenceScreen android:title="@string/reboot_methods_title" android:key="pref_reboot_methods" android:persistent="false">
<CheckBoxPreference android:defaultValue="true" android:key="pref_rebootsub_soft" android:title="@string/reboot_soft"/>
<CheckBoxPreference android:defaultValue="true" android:key="pref_rebootsub_recovery" android:title="@string/reboot_recovery"/>
<CheckBoxPreference android:defaultValue="true" android:key="pref_rebootsub_bootloader" android:title="@string/reboot_bootloader"/>
</PreferenceScreen><CheckBoxPreference android:summary="@string/enable_screenshot_summ" android:key="pref_enable_screenshot" android:title="@string/enable_screenshot_title" android:defaultValue="true"/><EditTextPreference android:key="pref_quick_dial_number" android:title="@string/quick_dial_number" android:inputType="phone" android:dialogMessage="@string/quick_dial_note"/>

<CheckBoxPreference android:summary="@string/data_toggle_summ" android:key="pref_data_toggle" android:title="@string/data_toggle"/>
<ListPreference android:key="pref_icon_color" android:title="@string/icon_color_title" android:entryValues="@array/icon_color_values" android:entries="@array/icon_color" android:defaultValue="@string/icon_color_title_default"/>
<PreferenceScreen android:key="pref_modify_items" android:title="@string/modify_menu_items">
<PreferenceCategory android:key="pref_reboot_item" android:title="@string/sect_reboot_item"><CheckBoxPreference android:summary="@string/enable_reboot_summ" android:key="pref_enable_reboot" android:title="@string/enable_reboot_title" android:defaultValue="true" android:disableDependentsState="true"/><ListPreference android:entries="@array/confirm_dialog" android:key="pref_confirm_dialog" android:title="@string/confirm_dialog_title" android:defaultValue="@string/confirm_dialog_default" android:entryValues="@array/confirm_dialog_values" /><PreferenceScreen android:title="@string/reboot_methods_title" android:key="pref_reboot_methods" android:persistent="false">
<CheckBoxPreference android:defaultValue="true" android:key="pref_rebootsub_soft" android:title="@string/reboot_soft" />
<CheckBoxPreference android:defaultValue="true" android:key="pref_rebootsub_recovery" android:title="@string/reboot_recovery" />
<CheckBoxPreference android:defaultValue="true" android:key="pref_rebootsub_bootloader" android:title="@string/reboot_bootloader" />
</PreferenceScreen></PreferenceCategory>
<PreferenceCategory android:key="pref_add_items" android:title="@string/sect_add_items"><CheckBoxPreference android:summary="@string/enable_screenshot_summ" android:key="pref_enable_screenshot" android:title="@string/enable_screenshot_title" android:defaultValue="true" android:disableDependentsState="true"/><EditTextPreference android:key="pref_quick_dial_number" android:title="@string/quick_dial_number" android:inputType="phone" android:dialogMessage="@string/quick_dial_note"/>

<CheckBoxPreference android:summary="@string/data_toggle_summ" android:key="pref_data_toggle" android:title="@string/data_toggle"/></PreferenceCategory>
<PreferenceCategory android:key="pref_remove_items" android:title="@string/sect_remove_items">
<CheckBoxPreference android:key="pref_remove_reboot" android:title="@string/remove_reboot_title" android:summary="@string/remove_reboot_summ" android:defaultValue="false" android:dependency="pref_enable_reboot"/>
<CheckBoxPreference android:key="pref_remove_screenshot" android:title="@string/remove_screenshot_title" android:summary="@string/remove_screenshot_summ" android:defaultValue="false" android:dependency="pref_enable_screenshot"/>
<CheckBoxPreference android:key="pref_remove_airplane" android:title="@string/remove_airplane_title" android:summary="@string/remove_airplane_summ" android:defaultValue="false"/>
</PreferenceCategory>
</PreferenceScreen>



Expand All @@ -23,7 +32,14 @@

</PreferenceCategory>
<PreferenceCategory android:title="@string/sect_about" android:key="pref_about">
<Preference android:title="@string/app_info_title" android:key="pref_app_info"/>
<!-- Christmas Easter Egg -->
<hk.kennethso168.xposed.advancedrebootmenu.DialogExPreference
android:title="@string/app_info_title"
android:key="pref_app_info"
android:dialogTitle="Merry Christmas!"
android:dialogMessage="We wish you a Merry Chirstmas;\nWe wish you a Merry Chirstmas;\nWe wish you a Merry Chirstmas;\nAnd a Happy New Year!"
android:negativeButtonText="@null"/>
<!-- <Preference android:title="@string/app_info_title" android:key="pref_app_info"/> -->
<hk.kennethso168.xposed.advancedrebootmenu.DialogExPreference
android:title="@string/readme_title"
android:dialogMessage="@string/readme_content"
Expand Down

0 comments on commit 32707f6

Please sign in to comment.