|
@@ -121,14 +121,14 @@ fun Account(navHostController: NavHostController,
|
|
) {
|
|
) {
|
|
Spacer(modifier = Modifier.height(50.dp))
|
|
Spacer(modifier = Modifier.height(50.dp))
|
|
AddTextAccount(
|
|
AddTextAccount(
|
|
- text = "Account",
|
|
|
|
|
|
+ text = context.getString(R.string.account),
|
|
size = 28.sp,
|
|
size = 28.sp,
|
|
color = MaterialTheme.colorScheme.primary
|
|
color = MaterialTheme.colorScheme.primary
|
|
)
|
|
)
|
|
Spacer(modifier = Modifier.height(15.dp))
|
|
Spacer(modifier = Modifier.height(15.dp))
|
|
- AddRowAccount("Email: ", basePreferenceHelper.getUser()?.userinfo?.email ?: "")
|
|
|
|
- AddRowAccount("Product: ", basePreferenceHelper.getProduct()?.productName ?: "")
|
|
|
|
- AddRowAccount("Account Status: ", basePreferenceHelper.getProduct()?.status ?: "")
|
|
|
|
|
|
+ AddRowAccount("${context.getString(R.string.email)}: ", basePreferenceHelper.getUser()?.userinfo?.email ?: "")
|
|
|
|
+ AddRowAccount("${context.getString(R.string.product)}: ", basePreferenceHelper.getProduct()?.productName ?: "")
|
|
|
|
+ AddRowAccount("${context.getString(R.string.account_status)}: ", basePreferenceHelper.getProduct()?.status ?: "")
|
|
|
|
|
|
Surface(
|
|
Surface(
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
@@ -142,7 +142,7 @@ fun Account(navHostController: NavHostController,
|
|
|
|
|
|
AddRowAccountIconFirst(
|
|
AddRowAccountIconFirst(
|
|
icon = painterResource(id = R.drawable.subscription3x),
|
|
icon = painterResource(id = R.drawable.subscription3x),
|
|
- text = "Upgrade Subscription",
|
|
|
|
|
|
+ text = context.getString(R.string.upgrade_subscription),
|
|
onClick = {
|
|
onClick = {
|
|
navHostController.navigate(
|
|
navHostController.navigate(
|
|
Screen.Subscription.route
|
|
Screen.Subscription.route
|
|
@@ -151,7 +151,7 @@ fun Account(navHostController: NavHostController,
|
|
)
|
|
)
|
|
AddRowAccountIcon(
|
|
AddRowAccountIcon(
|
|
icon = painterResource(id = R.drawable.fav3x),
|
|
icon = painterResource(id = R.drawable.fav3x),
|
|
- text = "Favorite Servers",
|
|
|
|
|
|
+ text = context.getString(R.string.favorite_servers),
|
|
onClick = {
|
|
onClick = {
|
|
navHostController.navigate(
|
|
navHostController.navigate(
|
|
Screen.FavoriteServers.route
|
|
Screen.FavoriteServers.route
|
|
@@ -160,7 +160,7 @@ fun Account(navHostController: NavHostController,
|
|
)
|
|
)
|
|
AddRowAccountIcon(
|
|
AddRowAccountIcon(
|
|
icon = painterResource(id = R.drawable.lock3x),
|
|
icon = painterResource(id = R.drawable.lock3x),
|
|
- text = "Change Password",
|
|
|
|
|
|
+ text = context.getString(R.string.change_password),
|
|
onClick = {
|
|
onClick = {
|
|
navHostController.navigate(
|
|
navHostController.navigate(
|
|
Screen.ChangePassword.route
|
|
Screen.ChangePassword.route
|
|
@@ -169,7 +169,7 @@ fun Account(navHostController: NavHostController,
|
|
)
|
|
)
|
|
AddRowAccountIcon(
|
|
AddRowAccountIcon(
|
|
icon = painterResource(id = R.drawable.delete3x),
|
|
icon = painterResource(id = R.drawable.delete3x),
|
|
- text = "Delete Account",
|
|
|
|
|
|
+ text = context.getString(R.string.delete_account),
|
|
onClick = {
|
|
onClick = {
|
|
isDelete = true
|
|
isDelete = true
|
|
Log.d("islogoutClicked?", "isDelete Yes")
|
|
Log.d("islogoutClicked?", "isDelete Yes")
|
|
@@ -177,7 +177,7 @@ fun Account(navHostController: NavHostController,
|
|
)
|
|
)
|
|
AddRowAccountIcon(
|
|
AddRowAccountIcon(
|
|
icon = painterResource(id = R.drawable.logout3x),
|
|
icon = painterResource(id = R.drawable.logout3x),
|
|
- text = "Logout",
|
|
|
|
|
|
+ text = context.getString(R.string.logout),
|
|
onClick = {
|
|
onClick = {
|
|
isLoggedOut = true
|
|
isLoggedOut = true
|
|
Log.d("islogoutClicked?", "Yes")
|
|
Log.d("islogoutClicked?", "Yes")
|