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

Commit e0ee1e1d authored by Calvin Pan's avatar Calvin Pan Committed by Android (Google) Code Review
Browse files

Merge changes Icee8c85e,I98be6f30,I343b705b

* changes:
  [Smart forwarding] Enable/Disable Smart Forwarding flow
  [Smart forwarding] Add UI for Smart Forwarding
  [Smart forwarding] Add string and layout resource
parents 640010dc 71dd99c7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3672,6 +3672,12 @@
        <service android:name=".sim.SimNotificationService"
                 android:permission="android.permission.BIND_JOB_SERVICE" />

        <activity android:name=".sim.smartForwarding.SmartForwardingActivity"
            android:theme="@style/Theme.SubSettings.Base"
            android:exported="true"
            android:launchMode="singleTask">
        </activity>

        <!-- This is the longest AndroidManifest.xml ever. -->
    </application>
</manifest>
+25 −0
Original line number Diff line number Diff line
@@ -12627,4 +12627,29 @@
    <!-- Default preference title for showing all apps on device [CHAR_LIMIT=50]-->
    <string name="default_see_all_apps_title">See all apps</string>
    <!-- Title for smart forwarding [CHAR LIMIT=50]-->
    <string name="smart_forwarding_title">Smart Forwarding</string>
    <!-- Summary for smart forwarding enabled [CHAR LIMIT=50]-->
    <string name="smart_forwarding_summary_enabled">Smart Forwarding Enabled</string>
    <!-- Summary for smart forwarding disabled [CHAR LIMIT=50]-->
    <string name="smart_forwarding_summary_disabled">Smart Forwarding Disabled</string>
    <!-- Dialog title for smart forwarding ongoing [CHAR LIMIT=50]-->
    <string name="smart_forwarding_ongoing_title">Call Settings</string>
    <!-- Subtext for smart forwarding ongoing [CHAR LIMIT=50]-->
    <string name="smart_forwarding_ongoing_text">Updating Settings...</string>
    <!-- Dialog title for smart forwarding failed [CHAR LIMIT=50]-->
    <string name="smart_forwarding_failed_title">Call Settings error</string>
    <!-- Subtext for smart forwarding failed [CHAR LIMIT=50]-->
    <string name="smart_forwarding_failed_text">Network or SIM card error.</string>
    <!-- Subtext for sim is not activated [CHAR LIMIT=50]-->
    <string name="smart_forwarding_failed_not_activated_text">Sim is not activated.</string>
    <!-- Title when smart forwarding can't get the phone number [CHAR LIMIT=50]-->
    <string name="smart_forwarding_input_mdn_title">Enter Phone numbers</string>
    <!-- Dialog title when user update the phone number [CHAR LIMIT=50]-->
    <string name="smart_forwarding_input_mdn_dialog_title">Enter Phone number</string>
    <!-- Alert Dialog text when user didn't input the phone number [CHAR LIMIT=50]-->
    <string name="smart_forwarding_missing_mdn_text">Phone number is missing.</string>
    <!-- Alert Dialog text when user didn't input the phone number [CHAR LIMIT=50]-->
    <string name="smart_forwarding_missing_alert_dialog_text">OK</string>
</resources>
+27 −0
Original line number Diff line number Diff line
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

    <fragment android:id="@+id/fragment_settings"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@+id/cancel"
            android:name="com.android.settings.sim.smartForwarding.MDNHandlerHeaderFragment"
            android:layout_marginBottom="15dp" />

    <Button android:id="@+id/process"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            android:layout_margin="5dip"
            android:text="process" />

    <Button android:id="@+id/cancel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_margin="5dip"
            android:text="cancel" />

</RelativeLayout>
 No newline at end of file
+18 −0
Original line number Diff line number Diff line
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:key="network_and_internet_screen"
    android:title="@string/smart_forwarding_input_mdn_title">

    <EditTextPreference
            android:key="slot0_phone_number"
            android:title="SIM 1"
            android:dialogTitle="@string/smart_forwarding_input_mdn_dialog_title"
            android:persistent="false" />

    <EditTextPreference
            android:key="slot1_phone_number"
            android:title="SIM 2"
            android:dialogTitle="@string/smart_forwarding_input_mdn_dialog_title"
            android:persistent="false" />

</PreferenceScreen>
 No newline at end of file
+14 −0
Original line number Diff line number Diff line
<PreferenceScreen
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:settings="http://schemas.android.com/apk/res-auto"
        android:key="smart_forwarding_preference"
        android:title="@string/smart_forwarding_title">

      <SwitchPreference
          android:key="smart_forwarding_switch"
          android:title="Smart forwarding"
          android:summaryOff="@string/smart_forwarding_summary_disabled"
          android:summaryOn="@string/smart_forwarding_summary_enabled"
          android:disableDependentsState="true" />

</PreferenceScreen>
 No newline at end of file
Loading