Merge "Change for private space intro screen string changes" into main

This commit is contained in:
Joseph Vincent
2024-02-26 20:24:46 +00:00
committed by Android (Google) Code Review
4 changed files with 23 additions and 19 deletions

View File

@@ -43,28 +43,28 @@
android:src="@drawable/private_space_illustration"/> android:src="@drawable/private_space_illustration"/>
<TextView <TextView
style="@style/PrivateSpaceSetupSubHeaderStyle" style="@style/PrivateSpaceSetupSubHeaderStyle"
android:text="@string/private_space_how_title"/> android:text="@string/private_space_setup_sub_header"/>
<RelativeLayout <RelativeLayout
style="@style/PrivateSpaceSetupBulletPointLayoutStyle"> style="@style/PrivateSpaceSetupBulletPointLayoutStyle">
<ImageView <ImageView
android:id="@+id/lockIcon" android:id="@+id/lockIcon"
style="@style/PrivateSpaceBulletPointIconStyle" style="@style/PrivateSpaceBulletPointIconStyle"
android:src="@drawable/ic_lock_closed" /> android:src="@drawable/counter_1_24dp" />
<TextView <TextView
style="@style/PrivateSpaceBulletPointTextFontStyle" style="@style/PrivateSpaceBulletPointTextFontStyle"
android:layout_toRightOf="@+id/lockIcon" android:layout_toRightOf="@+id/lockIcon"
android:text="@string/private_space_protected_lock_text"/> android:text="@string/private_space_separate_account_text"/>
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
style="@style/PrivateSpaceSetupBulletPointLayoutStyle"> style="@style/PrivateSpaceSetupBulletPointLayoutStyle">
<ImageView <ImageView
android:id="@+id/bellIcon" android:id="@+id/bellIcon"
style="@style/PrivateSpaceBulletPointIconStyle" style="@style/PrivateSpaceBulletPointIconStyle"
android:src="@drawable/ic_notifications" /> android:src="@drawable/counter_2_24dp" />
<TextView <TextView
style="@style/PrivateSpaceBulletPointTextFontStyle" style="@style/PrivateSpaceBulletPointTextFontStyle"
android:layout_toRightOf="@+id/bellIcon" android:layout_toRightOf="@+id/bellIcon"
android:text="@string/private_space_hidden_notifications_text"/> android:text="@string/private_space_protected_lock_text"/>
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
style="@style/PrivateSpaceSetupBulletPointLayoutStyle" style="@style/PrivateSpaceSetupBulletPointLayoutStyle"
@@ -73,11 +73,11 @@
<ImageView <ImageView
android:id="@+id/appsIcon" android:id="@+id/appsIcon"
style="@style/PrivateSpaceBulletPointIconStyle" style="@style/PrivateSpaceBulletPointIconStyle"
android:src="@drawable/ic_apps" /> android:src="@drawable/counter_3_24dp" />
<TextView <TextView
style="@style/PrivateSpaceBulletPointTextFontStyle" style="@style/PrivateSpaceBulletPointTextFontStyle"
android:layout_toRightOf="@+id/appsIcon" android:layout_toRightOf="@+id/appsIcon"
android:text="@string/private_space_access_bottom_text"/> android:text="@string/private_space_install_apps_text"/>
</RelativeLayout> </RelativeLayout>
<Space <Space
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -1313,25 +1313,25 @@
<!-- Label for private space setup button to create private space [CHAR LIMIT=30] --> <!-- Label for private space setup button to create private space [CHAR LIMIT=30] -->
<string name="private_space_setup_button_label">Set up</string> <string name="private_space_setup_button_label">Set up</string>
<!-- Title for Private Space setup education screen. [CHAR LIMIT=50] --> <!-- Title for Private Space setup education screen. [CHAR LIMIT=50] -->
<string name="private_space_setup_title">Set up a private space</string> <string name="private_space_setup_title">Private space</string>
<!-- Summary for the private space setup education screen. [CHAR LIMIT=NONE] --> <!-- Summary for the private space setup education screen. [CHAR LIMIT=NONE] -->
<string name="private_space_hide_apps_summary">Keep private apps in a separate space that you can hide or lock</string> <string name="private_space_hide_apps_summary">Hide or lock private apps in a separate space. Use a dedicated Google Account for extra security.</string>
<!-- Text shown in private space setup screen which explains how the private space works [CHAR LIMIT=50] --> <!-- Text shown in private space setup screen which explains how the private space works [CHAR LIMIT=50] -->
<string name="private_space_how_title">How it works</string> <string name="private_space_setup_sub_header">Set up your private space</string>
<!-- Text shown in private space setup screen which explains private space can be accessed from bottom of all apps list. [CHAR LIMIT=NONE] --> <!-- Text shown in private space setup screen which explains private space can be accessed from bottom of all apps list. [CHAR LIMIT=NONE] -->
<string name="private_space_access_bottom_text">You can access your private space from the bottom of your apps list</string> <string name="private_space_separate_account_text"><b>Choose a Google Account for your space</b>\nUsing a dedicated account helps to stop synced files, photos, and emails appearing outside your space</string>
<!-- Text shown in private space setup screen which explains private space apps are protected by a lock. [CHAR LIMIT=60] --> <!-- Text shown in private space setup screen which explains private space apps are protected by a lock. [CHAR LIMIT=NONE] -->
<string name="private_space_protected_lock_text">Apps in your private space are protected by a lock</string> <string name="private_space_protected_lock_text"><b>Set a lock</b>\nLock your space to stop other people opening it</string>
<!-- Text shown in private space setup screen which explains notifications from private space apps will not be shown when private space is locked. [CHAR LIMIT=NONE] --> <!-- Text shown in private space setup screen which explains notifications from private space apps will not be shown when private space is locked. [CHAR LIMIT=NONE] -->
<string name="private_space_hidden_notifications_text">Notifications from apps in your private space are hidden when it\u2019s locked</string> <string name="private_space_install_apps_text"><b>Install apps</b>\nYour private space has its own Play Store so you can install apps easily.</string>
<!-- This is info text to help explain in private space setup screen that the permissions granted to private space apps will not be shown in settings when private space is locked. [CHAR LIMIT=NONE] --> <!-- This is info text to help explain in private space setup screen that the permissions granted to private space apps will not be shown in settings when private space is locked. [CHAR LIMIT=NONE] -->
<string name="private_space_apps_permission_text">Apps in your private space won\'t appear in permission manager, privacy dashboard, and other settings when your private space is locked.\n\nYour private space can\'t be moved to a new device. You\'ll need to set up another private space if you want to use it on another device.\n\nAnyone that connects your device to a computer or installs harmful apps on your device may be able to access your private space.</string> <string name="private_space_apps_permission_text">Apps in your private space won\'t appear in permission manager, privacy dashboard, and other settings when your private space is locked.\n\nYour private space can\'t be moved to a new device. You\'ll need to set up another private space if you want to use it on another device.\n\nAnyone that connects your device to a computer or installs harmful apps on your device may be able to access your private space.</string>
<!-- Text shown at the bottom in private space auto advancing screens. [CHAR LIMIT=60] --> <!-- Text shown at the bottom in private space auto advancing screens. [CHAR LIMIT=60] -->
<string name="private_space_setting_up_text">Setting up private space\u2026</string> <string name="private_space_setting_up_text">Setting up private space\u2026</string>
<!-- Title for private space setup in auto advancing screen informing private space notifications are hidden when locked. [CHAR LIMIT=NONE] --> <!-- Title for private space setup in auto advancing screen informing private space notifications are hidden when locked. [CHAR LIMIT=NONE] -->
<string name="private_space_notifications_hidden_title">Notifications from private space apps are hidden when it\u2019s locked</string> <string name="private_space_notifications_hidden_title">Notifications from private space apps are hidden when it\u2019s locked</string>
<!-- Title for private space setup in auto advancing screen informing photos/files from private space can be shared when unlocked. [CHAR LIMIT=NONE] --> <!-- Title for private space setup in auto advancing screen informing to explore private space settings for hide and auto lock. [CHAR LIMIT=NONE] -->
<string name="private_space_share_photos_title">Unlock private space to share photos or files</string> <string name="private_space_explore_settings_title">Explore private space settings to hide private space and set up automatic locking</string>
<!-- Title for private space setup in auto advancing screen informing some system apps are already installed in private space. [CHAR LIMIT=NONE] --> <!-- Title for private space setup in auto advancing screen informing some system apps are already installed in private space. [CHAR LIMIT=NONE] -->
<string name="private_space_apps_installed_title">Some apps are already installed in your private space</string> <string name="private_space_apps_installed_title">Some apps are already installed in your private space</string>
<!-- Title for private space creation error screen. [CHAR LIMIT=60] --> <!-- Title for private space creation error screen. [CHAR LIMIT=60] -->

View File

@@ -966,6 +966,7 @@
<item name="android:paddingTop">20dp</item> <item name="android:paddingTop">20dp</item>
<item name="android:paddingBottom">8dp</item> <item name="android:paddingBottom">8dp</item>
<item name="android:textSize">14sp</item> <item name="android:textSize">14sp</item>
<item name="android:fontFamily">google-sans-medium</item>
</style> </style>
<style name="PrivateSpaceSetupBulletPointLayoutStyle"> <style name="PrivateSpaceSetupBulletPointLayoutStyle">

View File

@@ -16,6 +16,8 @@
package com.android.settings.privatespace; package com.android.settings.privatespace;
import static android.text.Layout.BREAK_STRATEGY_SIMPLE;
import android.animation.Animator; import android.animation.Animator;
import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet; import android.animation.AnimatorSet;
@@ -60,10 +62,10 @@ public class AutoAdvanceSetupFragment extends InstrumentedFragment {
ImmutableList.of( ImmutableList.of(
new Pair(R.string.private_space_notifications_hidden_title, new Pair(R.string.private_space_notifications_hidden_title,
R.drawable.private_space_setup_notification_illustration), R.drawable.private_space_setup_notification_illustration),
new Pair(R.string.private_space_share_photos_title,
R.drawable.private_space_setup_sharing_illustration),
new Pair(R.string.private_space_apps_installed_title, new Pair(R.string.private_space_apps_installed_title,
R.drawable.private_space_setup_preinstalled_illustration)); R.drawable.private_space_setup_preinstalled_illustration),
new Pair(R.string.private_space_explore_settings_title,
R.drawable.private_space_setup_sharing_illustration));
private Runnable mUpdateScreenResources = private Runnable mUpdateScreenResources =
new Runnable() { new Runnable() {
@@ -118,6 +120,7 @@ public class AutoAdvanceSetupFragment extends InstrumentedFragment {
(GlifLayout) (GlifLayout)
inflater.inflate(R.layout.private_space_advancing_screen, container, false); inflater.inflate(R.layout.private_space_advancing_screen, container, false);
mRootView.getHeaderTextView().setMaxLines(HEADER_TEXT_MAX_LINES); mRootView.getHeaderTextView().setMaxLines(HEADER_TEXT_MAX_LINES);
mRootView.getHeaderTextView().setBreakStrategy(BREAK_STRATEGY_SIMPLE);
updateHeaderAndImage(); updateHeaderAndImage();
mHandler = new Handler(Looper.getMainLooper()); mHandler = new Handler(Looper.getMainLooper());
mHandler.postDelayed(mUpdateScreenResources, DELAY_BETWEEN_SCREENS); mHandler.postDelayed(mUpdateScreenResources, DELAY_BETWEEN_SCREENS);