[#1094] Add message under Doc and PP buttons

* [#1094] Add message under Doc and PP buttons

- Closes #1094
- Shows Toast UI message with Not implemented yet test after the buttons hit

* Changelog update
This commit is contained in:
Honza Rychnovský 2023-12-07 08:14:16 +01:00 committed by GitHub
parent 1310a0730d
commit 201cdbbd07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,9 @@ directly impact users rather than highlighting other key architectural updates.*
## [Unreleased]
### Added
- Unfinished features show a "Not implemented yet" message after accessing in the app UI
### Removed
- Home screen side menu navigation was removed in favor of the Settings screen

View File

@ -1,7 +1,9 @@
package co.electriccoin.zcash.ui
import android.annotation.SuppressLint
import android.widget.Toast
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import androidx.navigation.NavHostController
import androidx.navigation.NavOptionsBuilder
import androidx.navigation.compose.NavHost
@ -43,6 +45,7 @@ import co.electriccoin.zcash.ui.screen.update.WrapCheckForUpdate
@Composable
@Suppress("LongMethod")
internal fun MainActivity.Navigation() {
val context = LocalContext.current
val navController = rememberNavController().also {
// This suppress is necessary, as this is how we set up the nav controller for tests.
@SuppressLint("RestrictedApi")
@ -80,6 +83,7 @@ internal fun MainActivity.Navigation() {
goDocumentation = {
// TODO [#1084]: Documentation screen
// TODO [#1084]: https://github.com/Electric-Coin-Company/zashi-android/issues/1084
Toast.makeText(context, context.getString(R.string.not_implemented_yet), Toast.LENGTH_SHORT).show()
},
goExportPrivateData = {
navController.navigateJustOnce(EXPORT_PRIVATE_DATA)
@ -90,6 +94,7 @@ internal fun MainActivity.Navigation() {
goPrivacyPolicy = {
// TODO [#1083]: Privacy Policy screen
// TODO [#1083]: https://github.com/Electric-Coin-Company/zashi-android/issues/1083
Toast.makeText(context, context.getString(R.string.not_implemented_yet), Toast.LENGTH_SHORT).show()
},
goSeedRecovery = {
navController.navigateJustOnce(SEED_RECOVERY)

View File

@ -2,4 +2,5 @@
<string name="fiat_currency_conversion_rate_unavailable">Unavailable</string>
<string name="empty_char">-</string>
<string name="zcash_logo_content_description">Zcash logo</string>
<string name="not_implemented_yet">Not implemented yet.</string>
</resources>