Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3f42d8d authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Add parental control page

parent 68bf8a5a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ android_app {
        "setupdesign",
        "SystemUISharedLib",
        "org.lineageos.platform.internal",
        "androidx.browser_browser",
    ],

    libs: ["telephony-common"],
+13 −0
Original line number Diff line number Diff line
@@ -270,6 +270,19 @@
            </intent-filter>
        </activity>

        <activity android:name=".ParentalControlActivity"
                  android:label="@string/activity_label_empty"
                  android:excludeFromRecents="true"
                  android:configChanges="mcc|mnc"
                  android:immersive="true"
                  android:exported="false"
                  android:windowSoftInputMode="stateAlwaysHidden">
            <intent-filter>
                <action android:name="org.lineageos.setupwizard.E_PARENTAL_CONTROL_SETTINGS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        
        <activity
            android:name=".backup.RestoreIntroActivity"
            android:label="@string/activity_label_empty"
+84 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2018-2021 E FOUNDATION

     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.
-->
<com.google.android.setupdesign.GlifLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/setup_wizard_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        style="@style/SudContentFrame">

        <FrameLayout android:id="@+id/page"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1">

            <ScrollView android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:fillViewport="true">

                <LinearLayout
                    android:orientation="vertical"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:textSize="16sp"
                        android:textColor="?android:attr/textColorPrimary"
                        android:text="@string/parental_control_setup_summary" />

                    <TextView
                        android:id="@+id/more_info_textview"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:textSize="16sp"
                        android:textColor="?android:colorAccent"
                        android:text="@string/more_info_text"
                        android:clickable="true"
                        android:focusable="true" />

                    <Button
                        android:id="@+id/activate_parental_control"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="@string/activate_parental_control"
                        android:textSize="14sp"
                        android:textAllCaps="true"
                        android:layout_marginEnd="16dp"
                        android:layout_marginStart="16dp"
                        android:layout_marginTop="80dp"
                        style="@style/SudGlifButton.Primary" />
                        
                </LinearLayout>
            </ScrollView>
        </FrameLayout>

        <org.lineageos.setupwizard.NavigationLayout
            android:id="@+id/navigation_bar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:showSkipButton="false" />

    </LinearLayout>
</com.google.android.setupdesign.GlifLayout>
+6 −0
Original line number Diff line number Diff line
@@ -42,6 +42,12 @@
    <WizardAction
        wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_DATETIME;end"
        id="datetime">
        <result wizard:action="e_parental_control_settings" />
    </WizardAction>

    <WizardAction
        wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.E_PARENTAL_CONTROL_SETTINGS;end"
        id="e_parental_control_settings">
        <result wizard:action="location_settings" />
    </WizardAction>

+3 −0
Original line number Diff line number Diff line
@@ -24,4 +24,7 @@
    <string name="e_account_manager_setup_configure">Anmelden</string>
    <string name="e_account_manager_setup_summary">Melde dich mit deiner e.email oder murena.io ID an, um dein persönliches Konto mit diesem Telefon zu verknüpfen. Dies wird die Synchronisation von E-Mails, Kontakten, Kalenderereignissen, Bilder, Videos, Notizen und Aufgaben zwischen diesem Telefon und deiner persönlichen Cloud ermöglichen.</string>
    <string name="e_account_manager_setup_title">Synchronisiere dein Cloud-Konto</string>
    <string name="activate_parental_control">Elternaufsicht aktivieren</string>
    <string name="parental_control_setup_title">Elternaufsicht einstellen</string>
    <string name="parental_control_setup_summary">Diese App bietet einen Schutz gegen unangemessene Inhalte für Ihre Kinder und Jugendliche. Sie können diese Funktion aktivieren, wenn Sie Ihr Gerät den Kindern leihen oder wenn das Gerät für sie bestimmt ist. Für mehr Informationen besuchen Sie bitte</string>
</resources>
 No newline at end of file
Loading