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

Commit d7a2aeb8 authored by Chaohui Wang's avatar Chaohui Wang
Browse files

Clean up TARE

Bug: 331617295
Flag: EXEMPT clean up
Test: m Settings
Change-Id: Ie37617a082c7036672d2901ed45146932a5d97d8
parent 637984a3
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -2275,13 +2275,6 @@
                       android:value="com.android.settings.privacy.PrivacyControlsFragment" />
        </activity>

        <activity android:name=".development.tare.TareHomePage"
                  android:label="@string/tare_settings"
                  android:exported="false" />

        <activity android:name=".development.tare.DropdownActivity"
                  android:exported="false" />

        <activity android:name="SetFullBackupPassword"
                  android:label="@string/local_backup_password_title"
                  android:exported="false" />
+0 −42
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 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="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:paddingStart="20dp"
    android:paddingEnd="20dp"
    android:paddingTop="16dp"
    android:paddingBottom="12dp">

    <EditText
        android:id="@+id/edittext"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:inputType="textCapSentences"
        android:minHeight="@dimen/min_tap_target_size"
        android:maxLength="50"
        android:singleLine="true" />

    <Spinner
        android:id="@+id/spinner"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:minHeight="@dimen/min_tap_target_size" />
</LinearLayout>

res/layout/tare_child_item.xml

deleted100644 → 0
+0 −23
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:padding="10dp"
              android:orientation="vertical">
  <TextView
      android:id="@+id/factor"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_centerVertical="true"
      android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
      android:paddingLeft="35dp" />
  <TextView
      android:id="@+id/factor_number"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_centerVertical="true"
      android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
      android:paddingLeft="35dp" />
</LinearLayout>
 No newline at end of file

res/layout/tare_dropdown_page.xml

deleted100644 → 0
+0 −28
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".development.tare.DropdownActivity">
  <Spinner
      android:id="@+id/spinner"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      android:theme="@style/Widget.PopupWindow.Settings" />
  <FrameLayout
      android:id="@+id/frame_layout"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      app:layout_constrainedWidth="true"
      app:layout_constrainedHeight="true"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/spinner"
      app:layout_constraintVertical_bias="0" />
</androidx.constraintlayout.widget.ConstraintLayout>
 No newline at end of file

res/layout/tare_homepage.xml

deleted100644 → 0
+0 −67
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2021 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:orientation="vertical"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".development.tare.TareHomePage">
    <Switch
        android:id="@+id/on_switch"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="20dp"
        android:textOff="@string/tare_off"
        android:textOn="@string/tare_on"
        android:showText="true"
        android:background="?android:attr/colorBackground" />
    <TextView
        android:id="@+id/alarmmanager"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="20dp"
        android:clickable="true"
        android:onClick="launchAlarmManagerPage"
        android:text="@string/tare_alarmmanager"
        android:textColor="?android:attr/textColorSecondary" />

    <TextView
        android:id="@+id/jobscheduler"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="20dp"
        android:clickable="true"
        android:text="@string/tare_jobscheduler"
        android:textColor="?android:attr/textColorSecondary"
        android:onClick="launchJobSchedulerPage" />

    <View
        android:id="@+id/divider"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="?android:attr/listDivider" />
    <Button
        android:id="@+id/revert_button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="20dp"
        android:onClick="revertSettings"
        android:text="@string/tare_revert"
        style="@style/ActionPrimaryButton" />
</LinearLayout>
Loading