[#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:
parent
1310a0730d
commit
201cdbbd07
|
@ -9,6 +9,9 @@ directly impact users rather than highlighting other key architectural updates.*
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Unfinished features show a "Not implemented yet" message after accessing in the app UI
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- Home screen side menu navigation was removed in favor of the Settings screen
|
- Home screen side menu navigation was removed in favor of the Settings screen
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
package co.electriccoin.zcash.ui
|
package co.electriccoin.zcash.ui
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
|
import android.widget.Toast
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.platform.LocalContext
|
||||||
import androidx.navigation.NavHostController
|
import androidx.navigation.NavHostController
|
||||||
import androidx.navigation.NavOptionsBuilder
|
import androidx.navigation.NavOptionsBuilder
|
||||||
import androidx.navigation.compose.NavHost
|
import androidx.navigation.compose.NavHost
|
||||||
|
@ -43,6 +45,7 @@ import co.electriccoin.zcash.ui.screen.update.WrapCheckForUpdate
|
||||||
@Composable
|
@Composable
|
||||||
@Suppress("LongMethod")
|
@Suppress("LongMethod")
|
||||||
internal fun MainActivity.Navigation() {
|
internal fun MainActivity.Navigation() {
|
||||||
|
val context = LocalContext.current
|
||||||
val navController = rememberNavController().also {
|
val navController = rememberNavController().also {
|
||||||
// This suppress is necessary, as this is how we set up the nav controller for tests.
|
// This suppress is necessary, as this is how we set up the nav controller for tests.
|
||||||
@SuppressLint("RestrictedApi")
|
@SuppressLint("RestrictedApi")
|
||||||
|
@ -80,6 +83,7 @@ internal fun MainActivity.Navigation() {
|
||||||
goDocumentation = {
|
goDocumentation = {
|
||||||
// TODO [#1084]: Documentation screen
|
// TODO [#1084]: Documentation screen
|
||||||
// TODO [#1084]: https://github.com/Electric-Coin-Company/zashi-android/issues/1084
|
// 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 = {
|
goExportPrivateData = {
|
||||||
navController.navigateJustOnce(EXPORT_PRIVATE_DATA)
|
navController.navigateJustOnce(EXPORT_PRIVATE_DATA)
|
||||||
|
@ -90,6 +94,7 @@ internal fun MainActivity.Navigation() {
|
||||||
goPrivacyPolicy = {
|
goPrivacyPolicy = {
|
||||||
// TODO [#1083]: Privacy Policy screen
|
// TODO [#1083]: Privacy Policy screen
|
||||||
// TODO [#1083]: https://github.com/Electric-Coin-Company/zashi-android/issues/1083
|
// 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 = {
|
goSeedRecovery = {
|
||||||
navController.navigateJustOnce(SEED_RECOVERY)
|
navController.navigateJustOnce(SEED_RECOVERY)
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
<string name="fiat_currency_conversion_rate_unavailable">Unavailable</string>
|
<string name="fiat_currency_conversion_rate_unavailable">Unavailable</string>
|
||||||
<string name="empty_char">-</string>
|
<string name="empty_char">-</string>
|
||||||
<string name="zcash_logo_content_description">Zcash logo</string>
|
<string name="zcash_logo_content_description">Zcash logo</string>
|
||||||
|
<string name="not_implemented_yet">Not implemented yet.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue