Bringup Scoopdroid Settings
This commit is contained in:
parent
23dab6e8fa
commit
f3fb1f9da8
77 changed files with 223 additions and 2018 deletions
|
|
@ -1 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
|
@ -1,9 +1,4 @@
|
|||
# AlphaDroid Settings repo #
|
||||
# ScoopDroid Settings repo #
|
||||
|
||||
### Description ###
|
||||
There will be goodies! :)
|
||||
|
||||
### Translations ###
|
||||
If you want to help out on translations, please click below badge
|
||||
|
||||
[](https://crowdin.com/project/alphadroid_alphasettings)
|
||||
ScoopDroid custom settings
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
android:padding="20dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerView
|
||||
android:id="@+id/color_picker_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -76,42 +76,42 @@
|
|||
android:layout_marginEnd="7dp"
|
||||
android:layout_marginTop="2dp">
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/white_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/black_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/cyan_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/red_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/green_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/yellow_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -133,7 +133,7 @@
|
|||
android:orientation="horizontal"
|
||||
android:layout_marginBottom="10dp">
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/old_color_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="fill_parent"
|
||||
|
|
@ -148,7 +148,7 @@
|
|||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/new_color_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
|||
|
|
@ -1,97 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 The Android Open Source Project
|
||||
Copyright (C) 2016-2022 crDroid Android Project
|
||||
Copyright (C) 2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:key="alpha_settings_preference_screen"
|
||||
android:title=" "
|
||||
android:persistent="true">
|
||||
|
||||
<!-- Alpha settings logo -->
|
||||
<!-- <Preference
|
||||
android:key="alpha_settings_logo"
|
||||
android:selectable="false"
|
||||
settings:layout="@layout/alpha_settings_logo" />-->
|
||||
|
||||
<Preference
|
||||
android:key="ui_settings_category"
|
||||
android:title="@string/ui_title"
|
||||
android:fragment="com.alpha.settings.fragments.UserInterface"
|
||||
android:icon="@drawable/ic_themes"/>
|
||||
|
||||
<!-- Status Bar -->
|
||||
<!--<Preference
|
||||
android:key="statusbar_settings_category"
|
||||
android:title="@string/statusbar_title"
|
||||
android:fragment="com.alpha.settings.fragments.StatusBar"
|
||||
android:icon="@drawable/ic_settings_statusbar"/>-->
|
||||
|
||||
<!-- Quick Settings -->
|
||||
<Preference
|
||||
android:key="quick_settings_category"
|
||||
android:title="@string/quicksettings_title"
|
||||
android:fragment="com.alpha.settings.fragments.QuickSettings"
|
||||
android:icon="@drawable/ic_settings_quicksettings"/>
|
||||
|
||||
<!-- Buttons -->
|
||||
<!--<Preference
|
||||
android:key="button_settings"
|
||||
android:title="@string/button_title"
|
||||
android:icon="@drawable/ic_buttons"
|
||||
android:fragment="com.alpha.settings.fragments.Buttons"/>-->
|
||||
|
||||
<!-- Lock Screen -->
|
||||
<Preference
|
||||
android:key="lockscreen_settings_category"
|
||||
android:title="@string/lockscreen_title"
|
||||
android:fragment="com.alpha.settings.fragments.LockScreen"
|
||||
android:icon="@drawable/ic_settings_lockscreen"/>
|
||||
|
||||
<!-- Notifications -->
|
||||
<Preference
|
||||
android:key="notification_settings_category"
|
||||
android:title="@string/notifications_title"
|
||||
android:fragment="com.alpha.settings.fragments.Notifications"
|
||||
android:icon="@drawable/ic_notifications"/>
|
||||
|
||||
<!-- Navigation -->
|
||||
<Preference
|
||||
android:key="navigation_settings_category"
|
||||
android:title="@string/navigation_title"
|
||||
android:fragment="com.alpha.settings.fragments.Navigation"
|
||||
android:icon="@drawable/ic_navigation"/>
|
||||
|
||||
<!-- Sound -->
|
||||
<Preference
|
||||
android:key="sound_settings_category"
|
||||
android:title="@string/sound_title"
|
||||
android:fragment="com.alpha.settings.fragments.Sound"
|
||||
android:icon="@drawable/ic_settings_sound"/>
|
||||
|
||||
<!-- Misc -->
|
||||
<Preference
|
||||
android:key="misc_settings_category"
|
||||
android:title="@string/misc_title"
|
||||
android:fragment="com.alpha.settings.fragments.Miscellaneous"
|
||||
android:icon="@drawable/ic_settings_misc"/>
|
||||
|
||||
<!-- About AlphaDroid -->
|
||||
<Preference
|
||||
android:key="about_alphadroid"
|
||||
android:title="@string/about_crdroid"
|
||||
android:fragment="com.alpha.settings.fragments.About"
|
||||
android:icon="@drawable/ic_settings_about"/>
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 crDroid Android Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/active_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1.0"
|
||||
android:scrollbarStyle="outsideOverlay"
|
||||
android:gravity="top">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="16dip"
|
||||
android:paddingEnd="16dip"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="16dip">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/changelog_text"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:padding="6dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
|
|
@ -1,99 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="5dp"
|
||||
android:paddingVertical="5dp"
|
||||
android:background="@drawable/option_border_custom">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" >
|
||||
</Space>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image1"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorPrimary" />
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" >
|
||||
</Space>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image2"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorPrimary" />
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" >
|
||||
</Space>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image3"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorPrimary" />
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" >
|
||||
</Space>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/option_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAppearance="@style/OptionTitleTextAppearance"/>
|
||||
</LinearLayout>
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
android:src="@drawable/ic_action_set" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerView
|
||||
android:id="@+id/color_picker_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -68,42 +68,42 @@
|
|||
android:layout_marginEnd="7dp"
|
||||
android:layout_marginTop="2dp">
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/white_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/black_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/cyan_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/red_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/green_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_weight="0.5" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/yellow_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
android:orientation="horizontal"
|
||||
android:layout_marginBottom="10dp">
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/old_color_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="fill_parent"
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp" />
|
||||
|
||||
<com.alpha.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
<com.scoop.settings.preferences.colorpicker.ColorPickerPanelView
|
||||
android:id="@+id/new_color_panel"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
|||
|
|
@ -1,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="7dp"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/option_tile"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="75dp"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center"
|
||||
android:paddingHorizontal="10dp"
|
||||
android:paddingVertical="10dp"
|
||||
android:background="@drawable/option_border_custom">
|
||||
|
||||
<TextView android:id="@+id/option_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/OptionTitleTextAppearance"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/option_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAppearance="@style/OptionTitleTextAppearance"/>
|
||||
</LinearLayout>
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 The Android Open Source Project
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="5dp"
|
||||
android:paddingVertical="5dp"
|
||||
android:background="@drawable/option_border_custom">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image1"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorPrimary" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image2"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorPrimary" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image3"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorPrimary" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image4"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorSecondary" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/option_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAppearance="@style/OptionTitleTextAppearance"/>
|
||||
</LinearLayout>
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="7dp"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/option_tile"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="75dp"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center"
|
||||
android:paddingHorizontal="10dp"
|
||||
android:paddingVertical="10dp"
|
||||
android:background="@drawable/option_border_custom">
|
||||
|
||||
<TextClock android:id="@+id/option_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:format12Hour="hh:mm"
|
||||
android:format24Hour="kk:mm"
|
||||
android:textAppearance="@style/OptionTitleTextAppearance"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/option_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAppearance="@style/OptionTitleTextAppearance"/>
|
||||
</LinearLayout>
|
||||
|
|
@ -1,96 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 The Android Open Source Project
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="5dp"
|
||||
android:paddingVertical="5dp"
|
||||
android:background="@drawable/option_border_custom">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" >
|
||||
</Space>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image1"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorPrimary" />
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" >
|
||||
</Space>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image2"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorPrimary" />
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" >
|
||||
</Space>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image3"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/icon_background"
|
||||
android:backgroundTint="?android:attr/textColorSecondary"
|
||||
android:tint="?android:attr/textColorPrimary" />
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" >
|
||||
</Space>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/option_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAppearance="@style/OptionTitleTextAppearance"/>
|
||||
</LinearLayout>
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 The Android Open Source Project
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
android:layout_margin="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/option_tile"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:padding="4dp"
|
||||
android:background="@drawable/qs_header_preview_background">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/qs_header_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:scaleType="fitXY"
|
||||
android:cropToPadding="true"/>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
|
@ -1,24 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2024 crDroid Android Project
|
||||
2023-2024 AlphaDroid Project
|
||||
<!-- Copyright (C) 2016 The Android Open Source Project
|
||||
Copyright (C) 2016-2022 crDroid Android Project
|
||||
Copyright (C) 2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:lineage="http://schemas.android.com/apk/res-auto"
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:title="@string/notifications_title">
|
||||
android:key=".scoop_settings_preference_screen"
|
||||
android:persistent="true">
|
||||
|
||||
<!-- Miscellaneous -->
|
||||
<Preference
|
||||
android:key="misc_settings_category"
|
||||
android:title="@string/misc_title"
|
||||
android:fragment="com.scoop.settings.fragments.Miscellaneous"
|
||||
android:icon="@drawable/ic_settings_misc"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 The Android Open Source Project
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/option_tile"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="75dp"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center"
|
||||
android:paddingHorizontal="10dp"
|
||||
android:paddingVertical="10dp"
|
||||
android:background="@drawable/option_border_custom">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/option_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/OptionTitleTextAppearance"/>
|
||||
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
|
@ -1,207 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2022 AlphaDroid Android Project
|
||||
Copyright (C) 2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- General strings -->
|
||||
<string name="string_ok">OK</string>
|
||||
<string name="string_reset">Reset</string>
|
||||
<string name="string_cancel">Cancel</string>
|
||||
<string name="string_save">Save</string>
|
||||
<string name="string_discard_changes">Discard changes</string>
|
||||
<string name="string_never">Never</string>
|
||||
<string name="string_always">Always</string>
|
||||
<string name="string_caution">Caution</string>
|
||||
<string name="string_delete">Delete</string>
|
||||
<string name="string_delete_message">Remove selected item?</string>
|
||||
<string name="string_choose_app">Choose app</string>
|
||||
<string name="string_enable">Enable</string>
|
||||
<string name="string_disable">Disable</string>
|
||||
<string name="string_on">On</string>
|
||||
<string name="string_off">Off</string>
|
||||
|
||||
<!-- Alpha settings -->
|
||||
<string name="alpha_settings_title">Alpha settings</string>
|
||||
<string name="alpha_settings_summary">There will be goodies!</string>
|
||||
|
||||
<!-- Personalization Categories -->
|
||||
<string name="button_title">Buttons</string>
|
||||
<string name="lockscreen_title">Lock Screen</string>
|
||||
<string name="misc_title">Miscellaneous</string>
|
||||
<string name="navigation_title">Navigation</string>
|
||||
<string name="notifications_title">Notifications</string>
|
||||
<string name="quicksettings_title">Quick Settings</string>
|
||||
<string name="sound_title">Sound</string>
|
||||
<string name="statusbar_title">Status Bar</string>
|
||||
<string name="display_title">Display</string>
|
||||
<string name="ui_title">User Interface</string>
|
||||
|
||||
<!-- Color Picker -->
|
||||
<string name="dialog_color_picker">Color Picker</string>
|
||||
<string name="press_color_to_apply">Press on color below to apply</string>
|
||||
<string name="arrow_right" translatable="false">→</string>
|
||||
<string name="arrow_down" translatable="false">↓</string>
|
||||
<string name="hex" translatable="false">Hex:</string>
|
||||
<string name="hex_hint" translatable="false">#ff000000</string>
|
||||
<string name="set">Set</string>
|
||||
<string name="color_default">Default</string>
|
||||
|
||||
<!-- Changelog -->
|
||||
<string name="changelog_title">Current changelog</string>
|
||||
<string name="changelog_summary">View changes in the ROM installed</string>
|
||||
<string name="changelog_error">Unable to load changelog</string>
|
||||
|
||||
<!-- About AlphaDroid -->
|
||||
<string name="about_alpha">About AlphaDroid</string>
|
||||
<string name="about_device_name">Device</string>
|
||||
|
||||
<!-- Share AlphaDroid -->
|
||||
<string name="share_title">Share AlphaDroid</string>
|
||||
<string name="share_summary">Let others know about AlphaDroid</string>
|
||||
<string name="share_message">Check out if #AlphaDroidAndroid is available for your device @ https://sourceforge.net/projects/alphadroid-project/files</string>
|
||||
<string name="share_chooser_title">Share AlphaDroid</string>
|
||||
|
||||
<!-- Sites AlphaDroid -->
|
||||
<string name="source_title">GitHub</string>
|
||||
<string name="source_summary">We love open source, check us out</string>
|
||||
<string name="telegram_title">AlphaDroid community</string>
|
||||
<string name="telegram_summary">We are on telegram. Join us!</string>
|
||||
<string name="telegram_channel_title">Updates channel</string>
|
||||
<string name="telegram_channel_summary">Get notified of new builds on Telegram</string>
|
||||
<string name="website_title">Official website</string>
|
||||
<string name="website_summary">Visit our official website</string>
|
||||
<string name="translate_title">Translations</string>
|
||||
<string name="translate_summary">Help with localisation of ROM in your language!</string>
|
||||
<string name="sponsor_title" translatable="false">ScopeHosts</string>
|
||||
<string name="sponsor_summary">Visit our website host partner</string>
|
||||
<string name="buildserversponsor_title" translatable="false">InterServer</string>
|
||||
<string name="buildserversponsor_summary">We recommend their servers if interested in one</string>
|
||||
|
||||
<!-- Donate AlphaDroid -->
|
||||
<string name="donate_title">Support us</string>
|
||||
<string name="donate_summary">Donate to support further development</string>
|
||||
<string name="donate_team_title">AlphaDroid team</string>
|
||||
<string name="donate_team_summary">Donate to support server hosting, site uptime and overall management</string>
|
||||
|
||||
<!-- OTA -->
|
||||
<string name="alpha_update_title">Updates</string>
|
||||
<string name="alpha_update_summary">Check and download latest update</string>
|
||||
|
||||
<!-- App details: open play store link if app is user installed -->
|
||||
<string name="app_play_store">Google Play</string>
|
||||
|
||||
<!-- Custom seekbar -->
|
||||
<string name="custom_seekbar_value">Value: <xliff:g id="v">%s</xliff:g></string>
|
||||
<string name="custom_seekbar_default_value">by default</string>
|
||||
<string name="custom_seekbar_default_value_to_set">Default value: <xliff:g id="v">%s</xliff:g>\nLong tap to set</string>
|
||||
<string name="custom_seekbar_default_value_is_set">Default value is set</string>
|
||||
|
||||
<!-- Units -->
|
||||
<string name="unit_seconds">seconds</string>
|
||||
<string name="unit_milliseconds">milliseconds</string>
|
||||
<string name="unit_pixels" translatable="false">dp</string>
|
||||
<string name="unit_hz" translatable="false">hz</string>
|
||||
|
||||
<!-- Clipboard -->
|
||||
<string name="copied_to_clipboard">Copied to clipboard</string>
|
||||
<string name="longpress_to_clipboard">Long-press to copy</string>
|
||||
|
||||
<!-- SELinux status -->
|
||||
<string name="selinux_status">SELinux status</string>
|
||||
<string name="selinux_status_disabled">Disabled</string>
|
||||
<string name="selinux_status_permissive">Permissive</string>
|
||||
<string name="selinux_status_enforcing">Enforcing</string>
|
||||
|
||||
<!-- Firmware info -->
|
||||
<string name="category_android_info">Android</string>
|
||||
<string name="category_alpha_info">AlphaDroid</string>
|
||||
<string name="category_device_info">Device</string>
|
||||
|
||||
<!-- Build info -->
|
||||
<string name="build_status_title">Build Status</string>
|
||||
<string name="build_status_summary">Unofficial</string>
|
||||
<string name="build_status_official">Official</string>
|
||||
<string name="build_status_unofficial">Unofficial</string>
|
||||
<string name="alpha_build_version">AlphaDroid version</string>
|
||||
<string name="alpha_build_date">Build date</string>
|
||||
|
||||
<!-- Maintainer -->
|
||||
<string name="maintainer_title">Maintainer</string>
|
||||
<string name="maintainer_summary">Searching for maintainer...</string>
|
||||
|
||||
<!-- About phone cards -->
|
||||
<string name="storage_card_title">Storage</string>
|
||||
<string name="storage_card_info">Occupied</string>
|
||||
<string name="about_device_rom_title">Android %s</string>
|
||||
<string name="about_device_nearby">The device name can and will be seen by the nearby devices.</string>
|
||||
|
||||
<!-- App Title -->
|
||||
<string name="reset_settings_title">Reset settings</string>
|
||||
<string name="reset_settings_message">This will reset most AlphaDroid settings to their default values for the current user. Would you like to continue?</string>
|
||||
|
||||
<!-- Timeouts -->
|
||||
<string name="custom_timeout_summary_never">Never</string>
|
||||
<string name="custom_timeout_summary_5secs">5 seconds</string>
|
||||
<string name="custom_timeout_summary_10secs">10 seconds</string>
|
||||
<string name="custom_timeout_summary_15secs">15 seconds</string>
|
||||
<string name="custom_timeout_summary_30secs">30 seconds</string>
|
||||
<string name="custom_timeout_summary_1min">1 minute</string>
|
||||
<string name="custom_timeout_summary_2mins">2 minutes</string>
|
||||
<string name="custom_timeout_summary_5mins">5 minutes</string>
|
||||
<string name="custom_timeout_summary_10mins">10 minutes</string>
|
||||
<string name="custom_timeout_summary_20mins">20 minutes</string>
|
||||
<string name="custom_timeout_summary_30mins">30 minutes</string>
|
||||
<string name="custom_timeout_summary_1hour">1 hour</string>
|
||||
<string name="custom_timeout_summary_2hours">2 hours</string>
|
||||
<string name="custom_timeout_summary_4hours">4 hours</string>
|
||||
<string name="custom_timeout_summary_8hours">8 hours</string>
|
||||
<string name="custom_timeout_summary_12hours">12 hours</string>
|
||||
<string name="custom_timeout_summary_24hours">24 hours</string>
|
||||
<string name="custom_timeout_summary_36hours">36 hours</string>
|
||||
<string name="custom_timeout_summary_48hours">48 hours</string>
|
||||
<string name="custom_timeout_summary_72hours">72 hours</string>
|
||||
|
||||
<!-- App lock -->
|
||||
<string name="app_lock_title">App lock</string>
|
||||
<plurals name="app_lock_summary">
|
||||
<item quantity="one"><xliff:g example="1" id="Number of applications">%1$d</xliff:g> application is protected</item>
|
||||
<item quantity="other"><xliff:g example="10" id="Number of applications">%1$d</xliff:g> applications are protected</item>
|
||||
</plurals>
|
||||
<string name="app_lock_authentication_dialog_title">Unlock</string>
|
||||
<string name="enable_debugging">Enable debugging</string>
|
||||
<string name="disable_debugging">Disable debugging</string>
|
||||
<string name="app_lock_packages_title">Protected apps</string>
|
||||
<string name="app_lock_packages_summary">Select the apps to protect with biometrics or device credentials</string>
|
||||
<string name="app_lock_timeout_title">Auto lock timeout</string>
|
||||
<string name="app_lock_timeout_summary">Duration of time after which an unlocked app in background should be locked</string>
|
||||
<string name="app_lock_notifications_title">Redact notifications</string>
|
||||
<string name="app_lock_notifications_summary">Notification content will be hidden and collapsed for selected apps when they are locked. Heads up notifications will be automatically disabled.</string>
|
||||
<string name="app_lock_notifications_disabled_summary">Protect an application first</string>
|
||||
<string name="app_lock_biometrics_allowed_title">Enable biometrics for unlocking</string>
|
||||
<string name="app_lock_footer_text">Bubbles will be automatically dismissed after timeout</string>
|
||||
<string name="enable_protection">Enable protection</string>
|
||||
<string name="hide_from_launcher_title">Hide from launcher</string>
|
||||
<string name="hide_from_launcher_summary">Prevent this application from showing up in any launcher. Requires a launcher restart for changes to take effect.</string>
|
||||
|
||||
<!-- QuickSwitch -->
|
||||
<string name="quickswitch_launcher_title">AlphaDroid launcher</string>
|
||||
<string name="quickswitch_launcher_summary">Change AlphaDroid built-in launcher</string>
|
||||
<string name="quickswitch_launcher3">Launcher3</string>
|
||||
<string name="quickswitch_nexuslauncher">Nexus Launcher</string>
|
||||
<string name="quickswitch_lawnchair">Lawnchair</string>
|
||||
|
||||
</resources>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2022 crDroid Android Project
|
||||
Copyright (C) 2023.2024 AlphaDroid Project
|
||||
Copyright (C) 2023-2025 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2022 crDroid Android Project
|
||||
Copyright (C) 2023.2024 AlphaDroid Project
|
||||
Copyright (C) 2023-2025 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2022 AlphaDroid Android Project
|
||||
Copyright (C) 2023-2024 AlphaDroid Project
|
||||
Copyright (C) 2016-2025 crDroid Android Project
|
||||
Copyright (C) 2023-2025 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2022 AlphaDroid Android Project
|
||||
Copyright (C) 2016-2022 crDroid Android Project
|
||||
Copyright (C) 2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
94
res/values/scoop_strings.xml
Normal file
94
res/values/scoop_strings.xml
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2022 crDroid Android Project
|
||||
Copyright (C) 2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- General strings -->
|
||||
<string name="string_ok">OK</string>
|
||||
<string name="string_reset">Reset</string>
|
||||
<string name="string_cancel">Cancel</string>
|
||||
<string name="string_save">Save</string>
|
||||
<string name="string_discard_changes">Discard changes</string>
|
||||
<string name="string_never">Never</string>
|
||||
<string name="string_always">Always</string>
|
||||
<string name="string_caution">Caution</string>
|
||||
<string name="string_delete">Delete</string>
|
||||
<string name="string_delete_message">Remove selected item?</string>
|
||||
<string name="string_choose_app">Choose app</string>
|
||||
<string name="string_enable">Enable</string>
|
||||
<string name="string_disable">Disable</string>
|
||||
<string name="string_on">On</string>
|
||||
<string name="string_off">Off</string>
|
||||
|
||||
<!-- Scoopdroid settings -->
|
||||
<string name="scoop_settings_title">Scoopdroid settings</string>
|
||||
<string name="scoop_settings_summary">Our custom settings space</string>
|
||||
|
||||
<!-- Personalization Categories -->
|
||||
<string name="button_title">Buttons</string>
|
||||
<string name="misc_title">Miscellaneous</string>
|
||||
<string name="statusbar_title">Status Bar</string>
|
||||
|
||||
<!-- Color Picker -->
|
||||
<string name="dialog_color_picker">Color Picker</string>
|
||||
<string name="press_color_to_apply">Press on color below to apply</string>
|
||||
<string name="arrow_right" translatable="false">→</string>
|
||||
<string name="arrow_down" translatable="false">↓</string>
|
||||
<string name="hex" translatable="false">Hex:</string>
|
||||
<string name="hex_hint" translatable="false">#ff000000</string>
|
||||
<string name="set">Set</string>
|
||||
<string name="color_default">Default</string>
|
||||
|
||||
<!-- Custom seekbar -->
|
||||
<string name="custom_seekbar_value">Value: <xliff:g id="v">%s</xliff:g></string>
|
||||
<string name="custom_seekbar_default_value">by default</string>
|
||||
<string name="custom_seekbar_default_value_to_set">Default value: <xliff:g id="v">%s</xliff:g>\nLong tap to set</string>
|
||||
<string name="custom_seekbar_default_value_is_set">Default value is set</string>
|
||||
|
||||
<!-- Units -->
|
||||
<string name="unit_seconds">seconds</string>
|
||||
<string name="unit_milliseconds">milliseconds</string>
|
||||
<string name="unit_pixels" translatable="false">dp</string>
|
||||
<string name="unit_hz" translatable="false">hz</string>
|
||||
|
||||
<!-- App Title -->
|
||||
<string name="reset_settings_title">Reset settings</string>
|
||||
<string name="reset_settings_message">This will reset most Scoopdroid settings to their default values for the current user. Would you like to continue?</string>
|
||||
|
||||
<!-- Timeouts -->
|
||||
<string name="custom_timeout_summary_never">Never</string>
|
||||
<string name="custom_timeout_summary_5secs">5 seconds</string>
|
||||
<string name="custom_timeout_summary_10secs">10 seconds</string>
|
||||
<string name="custom_timeout_summary_15secs">15 seconds</string>
|
||||
<string name="custom_timeout_summary_30secs">30 seconds</string>
|
||||
<string name="custom_timeout_summary_1min">1 minute</string>
|
||||
<string name="custom_timeout_summary_2mins">2 minutes</string>
|
||||
<string name="custom_timeout_summary_5mins">5 minutes</string>
|
||||
<string name="custom_timeout_summary_10mins">10 minutes</string>
|
||||
<string name="custom_timeout_summary_20mins">20 minutes</string>
|
||||
<string name="custom_timeout_summary_30mins">30 minutes</string>
|
||||
<string name="custom_timeout_summary_1hour">1 hour</string>
|
||||
<string name="custom_timeout_summary_2hours">2 hours</string>
|
||||
<string name="custom_timeout_summary_4hours">4 hours</string>
|
||||
<string name="custom_timeout_summary_8hours">8 hours</string>
|
||||
<string name="custom_timeout_summary_12hours">12 hours</string>
|
||||
<string name="custom_timeout_summary_24hours">24 hours</string>
|
||||
<string name="custom_timeout_summary_36hours">36 hours</string>
|
||||
<string name="custom_timeout_summary_48hours">48 hours</string>
|
||||
<string name="custom_timeout_summary_72hours">72 hours</string>
|
||||
|
||||
</resources>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2022 AlphaDroid Android Project
|
||||
Copyright (C) 2016-2022 crDroid Android Project
|
||||
Copyright (C) 2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2021 crDroid Android Project
|
||||
2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<!-- Changelog -->
|
||||
<!--Preference
|
||||
android:key="alpha_changelog"
|
||||
android:icon="@drawable/ic_changelog"
|
||||
android:title="@string/changelog_title"
|
||||
android:summary="@string/changelog_summary">
|
||||
<intent android:action="android.intent.action.MAIN"
|
||||
android:targetPackage="com.android.settings"
|
||||
android:targetClass="com.alpha.settings.fragments.about.ChangelogActivity"/>
|
||||
</Preference-->
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2021 crDroid Android Project
|
||||
2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<!-- AlphaDroid Changelog -->
|
||||
<Preference
|
||||
android:key="about_changelog"
|
||||
android:icon="@drawable/ic_changelog"
|
||||
android:title="@string/changelog_title"
|
||||
android:summary="@string/changelog_summary">
|
||||
<intent android:action="android.intent.action.MAIN"
|
||||
android:targetPackage="com.android.settings"
|
||||
android:targetClass="com.alpha.settings.fragments.about.ChangelogActivity"/>
|
||||
</Preference>
|
||||
|
||||
<!-- AlphaDroid Website
|
||||
<Preference
|
||||
android:key="about_website"
|
||||
android:icon="@drawable/ic_web"
|
||||
android:title="@string/website_title"
|
||||
android:summary="@string/website_summary" />-->
|
||||
|
||||
<!-- AlphaDroid Translate -->
|
||||
<Preference
|
||||
android:key="about_translate"
|
||||
android:icon="@drawable/ic_translate"
|
||||
android:title="@string/translate_title"
|
||||
android:summary="@string/translate_summary" />
|
||||
|
||||
<!-- AlphaDroid Share -->
|
||||
<Preference
|
||||
android:key="about_share"
|
||||
android:icon="@drawable/ic_share"
|
||||
android:title="@string/share_title"
|
||||
android:summary="@string/share_summary" />
|
||||
|
||||
<!-- AlphaDroid Donate -->
|
||||
<Preference
|
||||
android:key="about_donate"
|
||||
android:icon="@drawable/ic_donate"
|
||||
android:title="@string/donate_title"
|
||||
android:summary="@string/donate_summary" />
|
||||
|
||||
<!-- AlphaDroid Source -->
|
||||
<Preference
|
||||
android:key="about_source"
|
||||
android:icon="@drawable/ic_source"
|
||||
android:title="@string/source_title"
|
||||
android:summary="@string/source_summary" />
|
||||
|
||||
<!-- AlphaDroid Telegram -->
|
||||
<Preference
|
||||
android:key="about_telegram"
|
||||
android:icon="@drawable/ic_telegram"
|
||||
android:title="@string/telegram_title"
|
||||
android:summary="@string/telegram_summary" />
|
||||
|
||||
<!-- AlphaDroid Telegram Updates Channel -->
|
||||
<Preference
|
||||
android:key="about_telegram_channel"
|
||||
android:icon="@drawable/ic_telegram_channel"
|
||||
android:title="@string/telegram_channel_title"
|
||||
android:summary="@string/telegram_channel_summary" />
|
||||
|
||||
<!-- AlphaDroid OTA update -->
|
||||
<!--Preference
|
||||
android:key="system_update_settings"
|
||||
android:title="@string/ota_update_title"
|
||||
android:summary="@string/ota_update_summary"
|
||||
android:icon="@drawable/ic_update"
|
||||
settings:controller="com.android.settings.system.SystemUpdatePreferenceController">
|
||||
<intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />
|
||||
</Preference-->
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2024 crDroid Android Project
|
||||
2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
xmlns:lineage="http://schemas.android.com/apk/res-auto"
|
||||
android:title="@string/lockscreen_title">
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2024 crDroid Android Project
|
||||
2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:lineage="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:title="@string/navigation_title">
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2024 crDroid Android Project
|
||||
2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
xmlns:lineage="http://schemas.android.com/apk/res-auto"
|
||||
android:title="@string/quicksettings_title">
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2024 crDroid Android Project
|
||||
2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:lineage="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:title="@string/sound_title">
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2023 crDroid Android Project
|
||||
2023-2024 AlphaDroid Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:lineage="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:title="@string/ui_title">
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,115 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2023 crDroid Android Project
|
||||
* 2023-2024 AlphaDroid Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
import com.android.settings.SettingsPreferenceFragment;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import com.android.settings.R;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
@SearchIndexable
|
||||
public class About extends SettingsPreferenceFragment {
|
||||
|
||||
public static final String TAG = "About";
|
||||
|
||||
private String KEY_ABOUT_DONATE = "about_donate";
|
||||
private String KEY_ABOUT_SOURCE = "about_source";
|
||||
private String KEY_ABOUT_TELEGRAM = "about_telegram";
|
||||
private String KEY_ABOUT_SHARE = "about_share";
|
||||
private String KEY_ABOUT_TRANSLATE = "about_translate";
|
||||
private String KEY_ABOUT_WEBSITE = "about_website";
|
||||
private String KEY_ABOUT_TELEGRAM_CHANNEL = "about_telegram_channel";
|
||||
|
||||
private Preference mDonate;
|
||||
private Preference mSourceUrl;
|
||||
private Preference mTelegramUrl;
|
||||
private Preference mShare;
|
||||
private Preference mTranslate;
|
||||
private Preference mWebsite;
|
||||
private Preference mTelegramChannelUrl;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
addPreferencesFromResource(R.xml.alpha_settings_about);
|
||||
|
||||
mDonate = findPreference(KEY_ABOUT_DONATE);
|
||||
mSourceUrl = findPreference(KEY_ABOUT_SOURCE);
|
||||
mTelegramUrl = findPreference(KEY_ABOUT_TELEGRAM);
|
||||
mShare = findPreference(KEY_ABOUT_SHARE);
|
||||
mTranslate = findPreference(KEY_ABOUT_TRANSLATE);
|
||||
mWebsite = findPreference(KEY_ABOUT_WEBSITE);
|
||||
mTelegramChannelUrl = findPreference(KEY_ABOUT_TELEGRAM_CHANNEL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceTreeClick(Preference preference) {
|
||||
if (preference == mDonate) {
|
||||
launchUrl("https://paypal.me/alphadroidproject");
|
||||
} else if (preference == mSourceUrl) {
|
||||
launchUrl("https://github.com/alphadroid-project");
|
||||
} else if (preference == mTelegramUrl) {
|
||||
launchUrl("https://t.me/alphadroid_chat");
|
||||
} else if (preference == mShare) {
|
||||
Intent intent = new Intent();
|
||||
intent.setAction(Intent.ACTION_SEND);
|
||||
intent.setType("text/plain");
|
||||
intent.putExtra(Intent.EXTRA_TEXT, String.format(
|
||||
getActivity().getString(R.string.share_message), Build.MODEL));
|
||||
startActivity(Intent.createChooser(intent, getActivity().getString(R.string.share_chooser_title)));
|
||||
} else if (preference == mTranslate) {
|
||||
launchUrl("https://crowdin.com/project/alphadroid_alphasettings");
|
||||
} else if (preference == mWebsite) {
|
||||
launchUrl("https://t.me/alphadroid_chat");
|
||||
} else if (preference == mTelegramChannelUrl) {
|
||||
launchUrl("https://t.me/alphadroid_releases");
|
||||
}
|
||||
|
||||
return super.onPreferenceTreeClick(preference);
|
||||
}
|
||||
|
||||
private void launchUrl(String url) {
|
||||
Uri uriUrl = Uri.parse(url);
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, uriUrl);
|
||||
getActivity().startActivity(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ALPHA;
|
||||
}
|
||||
|
||||
/**
|
||||
* For search
|
||||
*/
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.alpha_settings_about);
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2024 crDroid Android Project
|
||||
* 2023-2024 AlphaDroid Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.SearchIndexableResource;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceCategory;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
import androidx.preference.Preference.OnPreferenceChangeListener;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsPreferenceFragment;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lineageos.providers.LineageSettings;
|
||||
|
||||
@SearchIndexable
|
||||
public class LockScreen extends SettingsPreferenceFragment
|
||||
implements Preference.OnPreferenceChangeListener {
|
||||
|
||||
public static final String TAG = "LockScreen";
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
addPreferencesFromResource(R.xml.alpha_settings_lockscreen);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void reset(Context mContext) {
|
||||
ContentResolver resolver = mContext.getContentResolver();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ALPHA;
|
||||
}
|
||||
|
||||
/**
|
||||
* For search
|
||||
*/
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.alpha_settings_lockscreen) {
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2024 crDroid Android Project
|
||||
* 2023-2024 AlphaDroid Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.SearchIndexableResource;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceCategory;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
import androidx.preference.Preference.OnPreferenceChangeListener;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsPreferenceFragment;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lineageos.providers.LineageSettings;
|
||||
|
||||
@SearchIndexable
|
||||
public class Navigation extends SettingsPreferenceFragment
|
||||
implements Preference.OnPreferenceChangeListener {
|
||||
|
||||
public static final String TAG = "Navigation";
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
addPreferencesFromResource(R.xml.alpha_settings_navigation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void reset(Context mContext) {
|
||||
ContentResolver resolver = mContext.getContentResolver();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ALPHA;
|
||||
}
|
||||
|
||||
/**
|
||||
* For search
|
||||
*/
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.alpha_settings_navigation) {
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2024 crDroid Android Project
|
||||
* 2023-2024 AlphaDroid Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.SearchIndexableResource;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceCategory;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
import androidx.preference.Preference.OnPreferenceChangeListener;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsPreferenceFragment;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lineageos.providers.LineageSettings;
|
||||
|
||||
@SearchIndexable
|
||||
public class Notifications extends SettingsPreferenceFragment
|
||||
implements Preference.OnPreferenceChangeListener {
|
||||
|
||||
public static final String TAG = "Notifications";
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
addPreferencesFromResource(R.xml.alpha_settings_notifications);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void reset(Context mContext) {
|
||||
ContentResolver resolver = mContext.getContentResolver();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ALPHA;
|
||||
}
|
||||
|
||||
/**
|
||||
* For search
|
||||
*/
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.alpha_settings_notifications) {
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2024 crDroid Android Project
|
||||
* 2023-2024 AlphaDroid Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.SearchIndexableResource;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceCategory;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
import androidx.preference.Preference.OnPreferenceChangeListener;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsPreferenceFragment;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lineageos.providers.LineageSettings;
|
||||
|
||||
@SearchIndexable
|
||||
public class QuickSettings extends SettingsPreferenceFragment
|
||||
implements Preference.OnPreferenceChangeListener {
|
||||
|
||||
public static final String TAG = "QuickSettings";
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
addPreferencesFromResource(R.xml.alpha_settings_quicksettings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void reset(Context mContext) {
|
||||
ContentResolver resolver = mContext.getContentResolver();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ALPHA;
|
||||
}
|
||||
|
||||
/**
|
||||
* For search
|
||||
*/
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.alpha_settings_quicksettings) {
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2024 crDroid Android Project
|
||||
* 2023-2024 AlphaDroid Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.SearchIndexableResource;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceCategory;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
import androidx.preference.Preference.OnPreferenceChangeListener;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsPreferenceFragment;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lineageos.providers.LineageSettings;
|
||||
|
||||
@SearchIndexable
|
||||
public class Sound extends SettingsPreferenceFragment
|
||||
implements Preference.OnPreferenceChangeListener {
|
||||
|
||||
public static final String TAG = "Sound";
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
addPreferencesFromResource(R.xml.alpha_settings_sound;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void reset(Context mContext) {
|
||||
ContentResolver resolver = mContext.getContentResolver();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ALPHA;
|
||||
}
|
||||
|
||||
/**
|
||||
* For search
|
||||
*/
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.alpha_settings_sound) {
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2024 crDroid Android Project
|
||||
* 2023-2024 AlphaDroid Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.SearchIndexableResource;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceCategory;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
import androidx.preference.Preference.OnPreferenceChangeListener;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsPreferenceFragment;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lineageos.providers.LineageSettings;
|
||||
|
||||
@SearchIndexable
|
||||
public class UserInterface extends SettingsPreferenceFragment
|
||||
implements Preference.OnPreferenceChangeListener {
|
||||
|
||||
public static final String TAG = "UserInterface";
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
addPreferencesFromResource(R.xml.alpha_settings_ui);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void reset(Context mContext) {
|
||||
ContentResolver resolver = mContext.getContentResolver();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ALPHA;
|
||||
}
|
||||
|
||||
/**
|
||||
* For search
|
||||
*/
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.alpha_settings_ui) {
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2024 crDroid Android Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments.about;
|
||||
|
||||
import android.os.Bundle;
|
||||
import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
|
||||
|
||||
public class ChangelogActivity extends CollapsingToolbarBaseActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
getFragmentManager().beginTransaction().replace(
|
||||
com.android.settingslib.collapsingtoolbar.R.id.content_frame,
|
||||
new ChangelogFragment()).commit();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,129 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2021 crDroid Android Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments.about;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.app.Fragment;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Typeface;
|
||||
import android.text.Spannable;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.style.ForegroundColorSpan;
|
||||
import android.text.style.StyleSpan;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.LinearLayout.LayoutParams;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.preference.PreferenceFragment;
|
||||
|
||||
import com.android.settings.R;
|
||||
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
|
||||
public class ChangelogFragment extends PreferenceFragment {
|
||||
|
||||
TextView textView;
|
||||
|
||||
private static final String CHANGELOG_PATH = "/system/etc/Changelog.txt";
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
return inflater.inflate(R.layout.changelog, container, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewCreated(final View view, @Nullable Bundle savedInstanceState) {
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
|
||||
textView = view.findViewById(R.id.changelog_text);
|
||||
|
||||
InputStreamReader inputReader = null;
|
||||
String text = null;
|
||||
StringBuilder data = new StringBuilder();
|
||||
|
||||
Pattern date = Pattern.compile("(={20}|\\d{4}-\\d{2}-\\d{2})");
|
||||
Pattern commit = Pattern.compile("([a-f0-9]{7})");
|
||||
Pattern committer = Pattern.compile("\\[(\\D.*?)]");
|
||||
Pattern title = Pattern.compile("(\\R\\s+[\\*]\\s.*)");
|
||||
|
||||
try {
|
||||
char tmp[] = new char[2048];
|
||||
int numRead;
|
||||
|
||||
inputReader = new FileReader(CHANGELOG_PATH);
|
||||
while ((numRead = inputReader.read(tmp)) >= 0) {
|
||||
data.append(tmp, 0, numRead);
|
||||
}
|
||||
// text = data.toString();
|
||||
} catch (IOException e) {
|
||||
// text = getString(R.string.changelog_error);
|
||||
} finally {
|
||||
try {
|
||||
if (inputReader != null) {
|
||||
inputReader.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
|
||||
SpannableStringBuilder sb = new SpannableStringBuilder(data);
|
||||
Resources.Theme theme = getContext().getTheme();
|
||||
TypedValue typedValue = new TypedValue();
|
||||
theme.resolveAttribute(android.R.attr.colorAccent, typedValue, true);
|
||||
final int color = getContext().getColor(typedValue.resourceId);
|
||||
|
||||
Matcher m = date.matcher(data);
|
||||
while (m.find()){
|
||||
sb.setSpan(new ForegroundColorSpan(color), m.start(1), m.end(1), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
sb.setSpan(new StyleSpan(Typeface.BOLD), m.start(1), m.end(1), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
}
|
||||
m = commit.matcher(data);
|
||||
while (m.find()){
|
||||
sb.setSpan(new StyleSpan(Typeface.NORMAL), m.start(1), m.end(1), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
}
|
||||
m = committer.matcher(data);
|
||||
while (m.find()){
|
||||
sb.setSpan(new ForegroundColorSpan(color), m.start(1), m.end(1), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
sb.setSpan(new StyleSpan(Typeface.NORMAL), m.start(1), m.end(1), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
}
|
||||
m = title.matcher(data);
|
||||
while (m.find()){
|
||||
sb.setSpan(new ForegroundColorSpan(color), m.start(1), m.end(1), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
sb.setSpan(new StyleSpan(Typeface.BOLD), m.start(1), m.end(1), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
}
|
||||
|
||||
textView.setText(sb);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -15,28 +15,16 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings;
|
||||
package com.scoop.settings;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.Settings;
|
||||
import android.view.Gravity;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.Toolbar;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto
|
||||
;
|
||||
|
|
@ -45,14 +33,12 @@ import com.android.settingslib.search.SearchIndexable;
|
|||
import com.android.settings.R;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
|
||||
import com.google.android.material.appbar.CollapsingToolbarLayout;
|
||||
|
||||
@SearchIndexable
|
||||
public class AlphaSettings extends DashboardFragment {
|
||||
public class ScoopSettings extends DashboardFragment {
|
||||
|
||||
private static final String TAG = "AlphaSettings";
|
||||
private static final String TAG = "ScoopSettings";
|
||||
|
||||
protected CollapsingToolbarLayout mCollapsingToolbarLayout;
|
||||
private static final int MENU_RESET = Menu.FIRST;
|
||||
|
||||
@Override
|
||||
|
|
@ -115,7 +101,7 @@ public class AlphaSettings extends DashboardFragment {
|
|||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ALPHA;
|
||||
return MetricsProto.MetricsEvent.SCOOP;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -130,9 +116,9 @@ public class AlphaSettings extends DashboardFragment {
|
|||
|
||||
@Override
|
||||
protected int getPreferenceScreenResId() {
|
||||
return R.layout.alpha_settings;
|
||||
return R.layout.scoop_settings;
|
||||
}
|
||||
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.layout.alpha_settings);
|
||||
new BaseSearchIndexProvider(R.layout.scoop_settings);
|
||||
}
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings;
|
||||
package com.scoop.settings;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.fragments;
|
||||
package com.scoop.settings.fragments;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ContentResolver;
|
||||
|
|
@ -53,7 +53,7 @@ public class Miscellaneous extends SettingsPreferenceFragment
|
|||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
addPreferencesFromResource(R.xml.alpha_settings_misc;
|
||||
addPreferencesFromResource(R.xml.scoop_settings_misc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -72,14 +72,14 @@ public class Miscellaneous extends SettingsPreferenceFragment
|
|||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ALPHA;
|
||||
return MetricsProto.MetricsEvent.SCOOP;
|
||||
}
|
||||
|
||||
/**
|
||||
* For search
|
||||
*/
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.alpha_settings_misc) {
|
||||
new BaseSearchIndexProvider(R.xml.scoop_settings_misc) {
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.preference.ListPreference;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences
|
||||
package com.scoop.settings.preferences
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.provider.Settings;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.ContentResolver;
|
||||
import android.preference.PreferenceDataStore;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.ContentResolver;
|
||||
import android.preference.PreferenceDataStore;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.ContentResolver;
|
||||
import android.preference.PreferenceDataStore;
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.preference.ListPreference;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences
|
||||
package com.scoop.settings.preferences
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.provider.Settings;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.ContentResolver;
|
||||
import android.preference.PreferenceDataStore;
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences
|
||||
package com.scoop.settings.preferences
|
||||
|
||||
import android.content.Context
|
||||
import android.content.res.TypedArray
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.SystemProperties;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.SystemProperties;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.preference.EditTextPreference;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.preference.ListPreference;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences
|
||||
package com.scoop.settings.preferences
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences
|
||||
package com.scoop.settings.preferences
|
||||
|
||||
import android.content.Context
|
||||
import android.provider.Settings
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.provider.Settings;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences;
|
||||
package com.scoop.settings.preferences;
|
||||
|
||||
import android.content.ContentResolver;
|
||||
import android.preference.PreferenceDataStore;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences.colorpicker;
|
||||
package com.scoop.settings.preferences.colorpicker;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Bitmap.Config;
|
||||
|
|
@ -65,7 +65,7 @@ public class AlphaPatternDrawable extends Drawable {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void setAlpha(int alpha) {
|
||||
public void setAlpha(int.scoop) {
|
||||
throw new UnsupportedOperationException("Alpha is not supported by this drawwable.");
|
||||
}
|
||||
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences.colorpicker;
|
||||
package com.scoop.settings.preferences.colorpicker;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences.colorpicker;
|
||||
package com.scoop.settings.preferences.colorpicker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences.colorpicker;
|
||||
package com.scoop.settings.preferences.colorpicker;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
|
|
@ -116,7 +116,7 @@ public class ColorPickerPreference extends Preference implements
|
|||
private void init(Context context, AttributeSet attrs) {
|
||||
mDensity = getContext().getResources().getDisplayMetrics().density;
|
||||
if (attrs != null) {
|
||||
mAlphaSliderEnabled = attrs.getAttributeBooleanValue(null, "alphaSlider", false);
|
||||
mAlphaSliderEnabled = attrs.getAttributeBooleanValue(null, .scoopSlider", false);
|
||||
mDefaultValue = attrs.getAttributeIntValue(ANDROIDNS, "defaultValue", Color.BLACK);
|
||||
mShowReset = attrs.getAttributeBooleanValue(SETTINGS_NS, "showReset", true);
|
||||
mShowPreview = attrs.getAttributeBooleanValue(SETTINGS_NS, "showPreview", true);
|
||||
|
|
@ -283,13 +283,13 @@ public class ColorPickerPreference extends Preference implements
|
|||
* @author Unknown
|
||||
*/
|
||||
public static String convertToARGB(int color) {
|
||||
String alpha = Integer.toHexString(Color.alpha(color));
|
||||
String.scoop = Integer.toHexString(Color.scoop(color));
|
||||
String red = Integer.toHexString(Color.red(color));
|
||||
String green = Integer.toHexString(Color.green(color));
|
||||
String blue = Integer.toHexString(Color.blue(color));
|
||||
|
||||
if (alpha.length() == 1) {
|
||||
alpha = "0" + alpha;
|
||||
if .scoop.length() == 1) {
|
||||
.scoop = "0" +.scoop;
|
||||
}
|
||||
|
||||
if (red.length() == 1) {
|
||||
|
|
@ -304,7 +304,7 @@ public class ColorPickerPreference extends Preference implements
|
|||
blue = "0" + blue;
|
||||
}
|
||||
|
||||
return "#" + alpha + red + green + blue;
|
||||
return "#" +.scoop + red + green + blue;
|
||||
}
|
||||
|
||||
public static String convertToRGB(int color) {
|
||||
|
|
@ -340,22 +340,22 @@ public class ColorPickerPreference extends Preference implements
|
|||
argb = argb.replace("#", "");
|
||||
}
|
||||
|
||||
int alpha = -1, red = -1, green = -1, blue = -1;
|
||||
int.scoop = -1, red = -1, green = -1, blue = -1;
|
||||
|
||||
if (argb.length() == 8) {
|
||||
alpha = Integer.parseInt(argb.substring(0, 2), 16);
|
||||
.scoop = Integer.parseInt(argb.substring(0, 2), 16);
|
||||
red = Integer.parseInt(argb.substring(2, 4), 16);
|
||||
green = Integer.parseInt(argb.substring(4, 6), 16);
|
||||
blue = Integer.parseInt(argb.substring(6, 8), 16);
|
||||
}
|
||||
else if (argb.length() == 6) {
|
||||
alpha = 255;
|
||||
.scoop = 255;
|
||||
red = Integer.parseInt(argb.substring(0, 2), 16);
|
||||
green = Integer.parseInt(argb.substring(2, 4), 16);
|
||||
blue = Integer.parseInt(argb.substring(4, 6), 16);
|
||||
}
|
||||
|
||||
return Color.argb(alpha, red, green, blue);
|
||||
return Color.argb.scoop, red, green, blue);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alpha.settings.preferences.colorpicker;
|
||||
package com.scoop.settings.preferences.colorpicker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
|
|
@ -36,7 +36,7 @@ import android.view.View;
|
|||
|
||||
/**
|
||||
* Displays a color picker to the user and allow them
|
||||
* to select a color. A slider for the alpha channel is
|
||||
* to select a color. A slider for the.scoop channel is
|
||||
* also available. Enable it by setting
|
||||
* setAlphaSliderVisible(boolean) to true.
|
||||
* @author Daniel Nilsson
|
||||
|
|
@ -45,7 +45,7 @@ public class ColorPickerView extends View {
|
|||
|
||||
private final static int PANEL_SAT_VAL = 0;
|
||||
private final static int PANEL_HUE = 1;
|
||||
private final static int PANEL_ALPHA = 2;
|
||||
private final static int PANEL.SCOOP = 2;
|
||||
|
||||
/**
|
||||
* The width in pixels of the border
|
||||
|
|
@ -58,9 +58,9 @@ public class ColorPickerView extends View {
|
|||
*/
|
||||
private float HUE_PANEL_WIDTH = 30f;
|
||||
/**
|
||||
* The height in dp of the alpha panel
|
||||
* The height in dp of the.scoop panel
|
||||
*/
|
||||
private float ALPHA_PANEL_HEIGHT = 20f;
|
||||
private float .SCOOP_PANEL_HEIGHT = 20f;
|
||||
/**
|
||||
* The distance in dp between the different
|
||||
* color panels.
|
||||
|
|
@ -71,7 +71,7 @@ public class ColorPickerView extends View {
|
|||
*/
|
||||
private float PALETTE_CIRCLE_TRACKER_RADIUS = 5f;
|
||||
/**
|
||||
* The dp which the tracker of the hue or alpha panel
|
||||
* The dp which the tracker of the hue or.scoop panel
|
||||
* will extend outside of its bounds.
|
||||
*/
|
||||
private float RECTANGLE_TRACKER_OFFSET = 2f;
|
||||
|
|
@ -158,7 +158,7 @@ public class ColorPickerView extends View {
|
|||
PALETTE_CIRCLE_TRACKER_RADIUS *= mDensity;
|
||||
RECTANGLE_TRACKER_OFFSET *= mDensity;
|
||||
HUE_PANEL_WIDTH *= mDensity;
|
||||
ALPHA_PANEL_HEIGHT *= mDensity;
|
||||
.SCOOP_PANEL_HEIGHT *= mDensity;
|
||||
PANEL_SPACING = PANEL_SPACING * mDensity;
|
||||
|
||||
mDrawingOffset = calculateRequiredOffset();
|
||||
|
|
@ -341,7 +341,7 @@ public class ColorPickerView extends View {
|
|||
|
||||
float rectWidth = 4 * mDensity / 2;
|
||||
|
||||
Point p = alphaToPoint(mAlpha);
|
||||
Point p =.scoopToPoint(mAlpha);
|
||||
|
||||
RectF r = new RectF();
|
||||
r.left = p.x - rectWidth;
|
||||
|
|
@ -381,14 +381,14 @@ public class ColorPickerView extends View {
|
|||
return p;
|
||||
}
|
||||
|
||||
private Point alphaToPoint(int alpha){
|
||||
private Point.scoopToPoint(int.scoop){
|
||||
|
||||
final RectF rect = mAlphaRect;
|
||||
final float width = rect.width();
|
||||
|
||||
Point p = new Point();
|
||||
|
||||
p.x = (int) (width - (alpha * width / 0xff) + rect.left);
|
||||
p.x = (int) (width - .scoop * width / 0xff) + rect.left);
|
||||
p.y = (int) rect.top;
|
||||
|
||||
return p;
|
||||
|
|
@ -527,23 +527,23 @@ public class ColorPickerView extends View {
|
|||
|
||||
break;
|
||||
|
||||
case PANEL_ALPHA:
|
||||
case PANEL.SCOOP:
|
||||
|
||||
if(!mShowAlphaPanel || mAlphaRect == null){
|
||||
update = false;
|
||||
}
|
||||
else{
|
||||
|
||||
int alpha = (int) (mAlpha - x*10);
|
||||
int.scoop = (int) (mAlpha - x*10);
|
||||
|
||||
if(alpha < 0){
|
||||
alpha = 0;
|
||||
if.scoop < 0){
|
||||
.scoop = 0;
|
||||
}
|
||||
else if(alpha > 0xff){
|
||||
alpha = 0xff;
|
||||
else if.scoop > 0xff){
|
||||
.scoop = 0xff;
|
||||
}
|
||||
|
||||
mAlpha = alpha;
|
||||
mAlpha =.scoop;
|
||||
|
||||
|
||||
update = true;
|
||||
|
|
@ -645,7 +645,7 @@ public class ColorPickerView extends View {
|
|||
}
|
||||
else if(mAlphaRect != null && mAlphaRect.contains(startX, startY)){
|
||||
|
||||
mLastTouchedPanel = PANEL_ALPHA;
|
||||
mLastTouchedPanel = PANEL.SCOOP;
|
||||
|
||||
mAlpha = pointToAlpha((int)event.getX());
|
||||
|
||||
|
|
@ -686,11 +686,11 @@ public class ColorPickerView extends View {
|
|||
}
|
||||
else{
|
||||
|
||||
width = (int) (heightAllowed - ALPHA_PANEL_HEIGHT + HUE_PANEL_WIDTH);
|
||||
width = (int) (heightAllowed -.SCOOP_PANEL_HEIGHT + HUE_PANEL_WIDTH);
|
||||
|
||||
if(width > widthAllowed){
|
||||
width = widthAllowed;
|
||||
height = (int) (widthAllowed - HUE_PANEL_WIDTH + ALPHA_PANEL_HEIGHT);
|
||||
height = (int) (widthAllowed - HUE_PANEL_WIDTH +.SCOOP_PANEL_HEIGHT);
|
||||
}
|
||||
else{
|
||||
height = heightAllowed;
|
||||
|
|
@ -722,7 +722,7 @@ public class ColorPickerView extends View {
|
|||
int width = getPrefferedHeight();
|
||||
|
||||
if(mShowAlphaPanel){
|
||||
width -= (PANEL_SPACING + ALPHA_PANEL_HEIGHT);
|
||||
width -= (PANEL_SPACING +.SCOOP_PANEL_HEIGHT);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -735,7 +735,7 @@ public class ColorPickerView extends View {
|
|||
int height = (int)(200 * mDensity);
|
||||
|
||||
if(mShowAlphaPanel){
|
||||
height += PANEL_SPACING + ALPHA_PANEL_HEIGHT;
|
||||
height += PANEL_SPACING +.SCOOP_PANEL_HEIGHT;
|
||||
}
|
||||
|
||||
return height;
|
||||
|
|
@ -764,7 +764,7 @@ public class ColorPickerView extends View {
|
|||
float panelSide = dRect.height() - BORDER_WIDTH_PX * 2;
|
||||
|
||||
if(mShowAlphaPanel){
|
||||
panelSide -= PANEL_SPACING + ALPHA_PANEL_HEIGHT;
|
||||
panelSide -= PANEL_SPACING +.SCOOP_PANEL_HEIGHT;
|
||||
}
|
||||
|
||||
float left = dRect.left + BORDER_WIDTH_PX;
|
||||
|
|
@ -781,7 +781,7 @@ public class ColorPickerView extends View {
|
|||
float left = dRect.right - HUE_PANEL_WIDTH + BORDER_WIDTH_PX;
|
||||
float top = dRect.top + BORDER_WIDTH_PX;
|
||||
float bottom = dRect.bottom - BORDER_WIDTH_PX - (mShowAlphaPanel
|
||||
? (PANEL_SPACING + ALPHA_PANEL_HEIGHT) : 0);
|
||||
? (PANEL_SPACING +.SCOOP_PANEL_HEIGHT) : 0);
|
||||
float right = dRect.right - BORDER_WIDTH_PX;
|
||||
|
||||
mHueRect = new RectF(left, top, right, bottom);
|
||||
|
|
@ -794,7 +794,7 @@ public class ColorPickerView extends View {
|
|||
final RectF dRect = mDrawingRect;
|
||||
|
||||
float left = dRect.left + BORDER_WIDTH_PX;
|
||||
float top = dRect.bottom - ALPHA_PANEL_HEIGHT + BORDER_WIDTH_PX;
|
||||
float top = dRect.bottom -.SCOOP_PANEL_HEIGHT + BORDER_WIDTH_PX;
|
||||
float bottom = dRect.bottom - BORDER_WIDTH_PX;
|
||||
float right = dRect.right - BORDER_WIDTH_PX;
|
||||
|
||||
|
|
@ -860,7 +860,7 @@ public class ColorPickerView extends View {
|
|||
*/
|
||||
public void setColor(int color, boolean callback){
|
||||
|
||||
int alpha = Color.alpha(color);
|
||||
int.scoop = Color.scoop(color);
|
||||
int red = Color.red(color);
|
||||
int blue = Color.blue(color);
|
||||
int green = Color.green(color);
|
||||
|
|
@ -869,7 +869,7 @@ public class ColorPickerView extends View {
|
|||
|
||||
Color.RGBToHSV(red, green, blue, hsv);
|
||||
|
||||
mAlpha = alpha;
|
||||
mAlpha =.scoop;
|
||||
mHue = hsv[0];
|
||||
mSat = hsv[1];
|
||||
mVal = hsv[2];
|
||||
|
|
@ -894,8 +894,8 @@ public class ColorPickerView extends View {
|
|||
}
|
||||
|
||||
/**
|
||||
* Set if the user is allowed to adjust the alpha panel. Default is false.
|
||||
* If it is set to false no alpha will be set.
|
||||
* Set if the user is allowed to adjust the.scoop panel. Default is false.
|
||||
* If it is set to false no.scoop will be set.
|
||||
* @param visible
|
||||
*/
|
||||
public void setAlphaSliderVisible(boolean visible){
|
||||
|
|
@ -932,7 +932,7 @@ public class ColorPickerView extends View {
|
|||
|
||||
/**
|
||||
* Set the text that should be shown in the
|
||||
* alpha slider. Set to null to disable text.
|
||||
*.scoop slider. Set to null to disable text.
|
||||
* @param res string resource id.
|
||||
*/
|
||||
public void setAlphaSliderText(int res){
|
||||
|
|
@ -942,7 +942,7 @@ public class ColorPickerView extends View {
|
|||
|
||||
/**
|
||||
* Set the text that should be shown in the
|
||||
* alpha slider. Set to null to disable text.
|
||||
*.scoop slider. Set to null to disable text.
|
||||
* @param text Text that should be shown.
|
||||
*/
|
||||
public void setAlphaSliderText(String text){
|
||||
|
|
@ -952,7 +952,7 @@ public class ColorPickerView extends View {
|
|||
|
||||
/**
|
||||
* Get the current value of the text
|
||||
* that will be shown in the alpha
|
||||
* that will be shown in the.scoop
|
||||
* slider.
|
||||
* @return
|
||||
*/
|
||||
|
|
@ -13,14 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences.colorpicker;
|
||||
package com.scoop.settings.preferences.colorpicker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.provider.Settings;
|
||||
|
||||
import com.alpha.settings.preferences.SecureSettingsStore;
|
||||
import com.scoop.settings.preferences.SecureSettingsStore;
|
||||
|
||||
public class SecureSettingColorPickerPreference extends ColorPickerPreference {
|
||||
|
||||
|
|
@ -13,14 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alpha.settings.preferences.colorpicker;
|
||||
package com.scoop.settings.preferences.colorpicker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.provider.Settings;
|
||||
|
||||
import com.alpha.settings.preferences.SystemSettingsStore;
|
||||
import com.scoop.settings.preferences.SystemSettingsStore;
|
||||
|
||||
public class SystemSettingColorPickerPreference extends ColorPickerPreference {
|
||||
|
||||
Loading…
Add table
Reference in a new issue