Show "add access point" when the user selects add Apn.

Fix: 308724447
Test: Visual Test
Change-Id: I7c5a93c426dbb7806e5c21bae22f0dba7f61d870
This commit is contained in:
Charlotte Lu
2023-11-01 14:42:59 +08:00
parent e752f7214b
commit 8cbffebb89
2 changed files with 3 additions and 1 deletions

View File

@@ -3094,6 +3094,8 @@
<string name="apn_settings">APNs</string>
<!-- Screen title after user selects APNs setting option -->
<string name="apn_edit">Edit access point</string>
<!-- Screen title after user selects add APNs setting -->
<string name="apn_add">Add access point</string>
<!-- Edit access point label summary text when no value has been set -->
<string name="apn_not_set">Not set</string>
<!-- Edit access point label summary text when no value has been set for mvno value. [CHAR LIMIT=NONE]-->

View File

@@ -96,7 +96,7 @@ fun ApnPage(apnDataInit: ApnData, apnDataCur: MutableState<ApnData>, uriInit: Ur
getNetworkTypeSelectedOptionsState(apnData.networkType)
}
RegularScaffold(
title = stringResource(id = R.string.apn_edit),
title = if(apnDataInit.newApn) stringResource(id = R.string.apn_add) else stringResource(id = R.string.apn_edit),
actions = {
IconButton(onClick = {
validateAndSaveApnData(apnDataInit, apnData, context, uriInit)