Merge "TARE string clarification"

This commit is contained in:
TreeHugger Robot
2021-07-30 14:55:51 +00:00
committed by Android (Google) Code Review
3 changed files with 21 additions and 13 deletions

View File

@@ -31,21 +31,21 @@
android:text="On" android:text="On"
android:background="?android:attr/colorBackground"/> android:background="?android:attr/colorBackground"/>
<TextView <TextView
android:id="@+id/alarm_manager" android:id="@+id/alarmmanager"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="20dp" android:padding="20dp"
android:clickable="true" android:clickable="true"
android:text="@string/tare_alarm_manager" android:text="@string/tare_alarmmanager"
android:textColor="?android:attr/textColorSecondary"/> android:textColor="?android:attr/textColorSecondary"/>
<TextView <TextView
android:id="@+id/job_scheduler" android:id="@+id/jobscheduler"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="20dp" android:padding="20dp"
android:clickable="true" android:clickable="true"
android:text="@string/tare_job_scheduler" android:text="@string/tare_jobscheduler"
android:textColor="?android:attr/textColorSecondary"/> android:textColor="?android:attr/textColorSecondary"/>
<View <View

View File

@@ -13612,16 +13612,24 @@
<!-- Strings for Dialog connect button --> <!-- Strings for Dialog connect button -->
<string name="bluetooth_connect_access_dialog_positive">Connect</string> <string name="bluetooth_connect_access_dialog_positive">Connect</string>
<!-- Title for the button to edit The Android Resource Economy settings. [CHAR LIMIT=NONE] --> <!-- Title for the button to edit The Android Resource Economy settings. "TARE" is the name of
the feature that contains the AlarmManager and JobScheduler policies which are both android
APIs. AlarmManager and JobScheduler are the names of Android system services and cannot be
translated. "TARE" is not translatable. [CHAR LIMIT=NONE] -->
<string name="tare_title" translatable="false">TARE</string> <string name="tare_title" translatable="false">TARE</string>
<!-- TARE settings title in developer options; TARE" is not translatable but "settings" is [CHAR LIMIT=40] --> <!-- TARE settings title in developer options; "TARE" is the name of the feature and cannot be
translated. [CHAR LIMIT=40] -->
<string name="tare_settings">TARE Settings</string> <string name="tare_settings">TARE Settings</string>
<!-- Allows user to revert the TARE settings to their default values [CHAR LIMIT=40] --> <!-- Allows user to revert the TARE settings to their default values [CHAR LIMIT=40] -->
<string name="tare_revert">Revert to Default Settings</string> <string name="tare_revert">Revert to Default Settings</string>
<!-- Allows user to view Alarm Manager policy factors [CHAR LIMIT=40]--> <!-- Allows user to view AlarmManager policy factors. Alarm in this context is referring to the
<string name="tare_alarm_manager">Alarm Manager</string> possible alarm cases in the AlarmManager policy. AlarmManager is the name of an Android system
<!-- Allows user to view Job Scheduler policy factors [CHAR LIMIT=40]--> service and cannot be translated. [CHAR LIMIT=40]-->
<string name="tare_job_scheduler">Job Scheduler</string> <string name="tare_alarmmanager" translatable="false">AlarmManager</string>
<!-- Toast notifying the developer that settings were reverted to their default [CHAR LIMIT=40]--> <!-- Allows user to view JobScheduler policy factors. JobScheduler is the name of an Android
system service and cannot be translated.[CHAR LIMIT=40]-->
<string name="tare_jobscheduler" translatable="false">JobScheduler</string>
<!-- Toast notifying the developer that settings were reverted to their
default [CHAR LIMIT=40]-->
<string name="tare_settings_reverted_toast">Settings reverted to default.</string> <string name="tare_settings_reverted_toast">Settings reverted to default.</string>
</resources> </resources>

View File

@@ -42,8 +42,8 @@ public class TareHomePage extends Activity {
mOnSwitch = findViewById(R.id.on_switch); mOnSwitch = findViewById(R.id.on_switch);
mRevButton = findViewById(R.id.revert_button); mRevButton = findViewById(R.id.revert_button);
mAlarmManagerView = findViewById(R.id.alarm_manager); mAlarmManagerView = findViewById(R.id.alarmmanager);
mJobSchedulerView = findViewById(R.id.job_scheduler); mJobSchedulerView = findViewById(R.id.jobscheduler);
// TODO: Set the status of the buttons based on the current status // TODO: Set the status of the buttons based on the current status