Merge "Show "add access point" when the user selects add Apn." into main

This commit is contained in:
Charlotte Lu
2023-11-01 09:02:47 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 1 deletions

View File

@@ -3169,6 +3169,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(