Skip to content

Commit e43832f

Browse files
committed
hot fix accounts in settings rename
1 parent 273f8bb commit e43832f

File tree

8 files changed

+14
-12
lines changed

8 files changed

+14
-12
lines changed

app/src/main/java/jp/co/soramitsu/app/root/navigation/Navigator.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ class Navigator :
400400
navController?.navigate(R.id.open_extrinsic_detail, bundle)
401401
}
402402

403-
override fun openAccounts(accountChosenNavDirection: AccountChosenNavDirection) {
403+
override fun openWallets(accountChosenNavDirection: AccountChosenNavDirection) {
404404
navController?.navigate(R.id.action_open_accounts, AccountListFragment.getBundle(accountChosenNavDirection))
405405
}
406406

@@ -417,11 +417,11 @@ class Navigator :
417417
}
418418

419419
override fun openChangeAccountFromWallet() {
420-
openAccounts(AccountChosenNavDirection.BACK)
420+
openWallets(AccountChosenNavDirection.BACK)
421421
}
422422

423423
override fun openChangeAccountFromStaking() {
424-
openAccounts(AccountChosenNavDirection.BACK)
424+
openWallets(AccountChosenNavDirection.BACK)
425425
}
426426

427427
override fun openReceive(assetPayload: AssetPayload) {

common/src/main/res/values-ru/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<string name="pincode_fingerprint_error">Вы не авторизованы. Попробуйте другой палец.</string>
6868
<string name="pincode_fingerprint_switch_dialog_title">Использовать биометрию для авторизации</string>
6969
<string name="profile_accounts_title">Аккаунты</string>
70+
<string name="profile_wallets_title">Кошельки</string>
7071
<string name="profile_network_title">Сеть</string>
7172
<string name="profile_pincode_change_title">Изменить PIN-код</string>
7273
<string name="pincode_biometry_dialog_title">Биометрия</string>

common/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Terms and Conditions and Privacy Policy</string>
8989
<string name="pincode_fingerprint_error">You are not authorized. Try another finger.</string>
9090
<string name="pincode_fingerprint_switch_dialog_title">Use biometric to authorize</string>
9191
<string name="profile_accounts_title">Accounts</string>
92+
<string name="profile_wallets_title">Wallets</string>
9293
<string name="profile_network_title">Networks</string>
9394
<string name="profile_pincode_change_title">Change pin code</string>
9495
<string name="pincode_biometry_dialog_title">Biometry</string>

feature-account-impl/src/main/java/jp/co/soramitsu/feature_account_impl/presentation/AccountRouter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface AccountRouter : SecureRouter {
2929

3030
fun back()
3131

32-
fun openAccounts(accountChosenNavDirection: AccountChosenNavDirection)
32+
fun openWallets(accountChosenNavDirection: AccountChosenNavDirection)
3333

3434
fun openNodes()
3535

feature-account-impl/src/main/java/jp/co/soramitsu/feature_account_impl/presentation/profile/ProfileFragment.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import kotlinx.android.synthetic.main.fragment_profile.accountView
1717
import kotlinx.android.synthetic.main.fragment_profile.changePinCodeTv
1818
import kotlinx.android.synthetic.main.fragment_profile.languageWrapper
1919
import kotlinx.android.synthetic.main.fragment_profile.networkWrapper
20-
import kotlinx.android.synthetic.main.fragment_profile.profileAccounts
20+
import kotlinx.android.synthetic.main.fragment_profile.profileWallets
2121
import kotlinx.android.synthetic.main.fragment_profile.selectedLanguageTv
2222
import kotlinx.android.synthetic.main.fragment_profile.selectedNetworkTv
2323

@@ -36,7 +36,7 @@ class ProfileFragment : BaseFragment<ProfileViewModel>() {
3636

3737
aboutTv.setOnClickListener { viewModel.aboutClicked() }
3838

39-
profileAccounts.setOnClickListener { viewModel.accountsClicked() }
39+
profileWallets.setOnClickListener { viewModel.walletsClicked() }
4040
networkWrapper.setOnClickListener { viewModel.networksClicked() }
4141
languageWrapper.setOnClickListener { viewModel.languagesClicked() }
4242
changePinCodeTv.setOnClickListener { viewModel.changePinCodeClicked() }
@@ -80,7 +80,7 @@ class ProfileFragment : BaseFragment<ProfileViewModel>() {
8080
payload,
8181
viewModel::copyAddressClicked,
8282
viewModel::viewExternalClicked,
83-
viewModel::accountsClicked
83+
viewModel::walletsClicked
8484
).show()
8585
}
8686
}

feature-account-impl/src/main/java/jp/co/soramitsu/feature_account_impl/presentation/profile/ProfileViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class ProfileViewModel(
4141
router.openAboutScreen()
4242
}
4343

44-
fun accountsClicked() {
45-
router.openAccounts(AccountChosenNavDirection.MAIN)
44+
fun walletsClicked() {
45+
router.openWallets(AccountChosenNavDirection.MAIN)
4646
}
4747

4848
fun networksClicked() {

feature-account-impl/src/main/res/layout/fragment_profile.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
android:layout_height="wrap_content"
3939
android:background="@drawable/bg_primary_list_item"
4040
android:clickable="true"
41-
android:id="@+id/profileAccounts"
42-
android:drawableStart="@drawable/ic_settings_accounts"
41+
android:id="@+id/profileWallets"
42+
android:drawableStart="@drawable/ic_settings_wallets"
4343
android:drawableEnd="@drawable/ic_arrow_right_24"
4444
android:drawablePadding="@dimen/x1_5"
4545
android:focusable="true"
@@ -48,7 +48,7 @@
4848
android:paddingTop="@dimen/x1_5"
4949
android:paddingEnd="@dimen/x2"
5050
android:paddingBottom="@dimen/x1_5"
51-
android:text="@string/profile_accounts_title"
51+
android:text="@string/profile_wallets_title"
5252
android:textColor="@color/white" />
5353

5454
<View

0 commit comments

Comments
 (0)