diff --git a/app/build.gradle b/app/build.gradle index 09cca9f..f6f6916 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -27,6 +27,7 @@ dependencies { implementation 'com.android.support:support-core-ui:28.0.0-rc01' implementation 'com.android.support:support-fragment:28.0.0-rc01' implementation 'com.android.support:appcompat-v7:28.0.0-rc01' + implementation 'com.android.support:preference-v7:28.0.0-rc01' implementation 'com.android.support.constraint:constraint-layout:1.1.2' implementation 'com.android.support:design:28.0.0-rc01' implementation 'com.android.support:localbroadcastmanager:28.0.0-rc01' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e11633d..80a639e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -28,6 +28,10 @@ + + + + + diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml new file mode 100644 index 0000000..d62e8ac --- /dev/null +++ b/app/src/main/res/layout/activity_settings.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/main_activity_menu.xml b/app/src/main/res/menu/main_activity_menu.xml index 76d8dcb..4a25191 100644 --- a/app/src/main/res/menu/main_activity_menu.xml +++ b/app/src/main/res/menu/main_activity_menu.xml @@ -7,6 +7,12 @@ android:title="@string/freeze_all" app:showAsAction="ifRoom" /> + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 57fb245..f87aa79 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -36,4 +36,11 @@ Cannot add shortcuts to your launcher. Please contact the developer for more information. Operations for %s All apps in \"Auto Freeze\" list have been frozen successfully. + Settings + About + Version + Source Code + https://git.angry.im/PeterCxy/Shelter + Bug Report / Issue Tracker + https://git.angry.im/PeterCxy/Shelter/issues diff --git a/app/src/main/res/xml/preferences_settings.xml b/app/src/main/res/xml/preferences_settings.xml new file mode 100644 index 0000000..d84a3fb --- /dev/null +++ b/app/src/main/res/xml/preferences_settings.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + \ No newline at end of file