mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 14:55:48 +00:00
debug: trace RootViewModel.handleDeepLink top-level entry; add PEZ Airdrop label + trust-score gate to Mining Simulation
Deep link debug: DeepLinkModule wiring at app/root/di/deeplink/DeepLinksModule.kt confirmed MultisigDeepLinks IS included in the assembled handler list (ruling that out), yet the earlier MultisigOperationDetailsDeepLinkHandler-level Log.e calls never fired at all - not even the very first one in matches(). Logging one level up, at the true entry point, to see the raw Uri/scheme/authority/path as parsed and the final Result, before guessing further. Mining Simulation: adds a 'PEZ Airdrop' label above the square (user request), and refuses to activate + shows an explicit error if trust score is 0, instead of silently starting a permanently-zero-rate session.
This commit is contained in:
@@ -225,8 +225,11 @@ class RootViewModel(
|
||||
}
|
||||
|
||||
fun handleDeepLink(data: Uri) {
|
||||
android.util.Log.e("DeepLinkDebug", "RootViewModel.handleDeepLink: raw=$data scheme=${data.scheme} authority=${data.authority} path=${data.path}")
|
||||
launch {
|
||||
deepLinkHandler.handleDeepLink(data)
|
||||
val result = deepLinkHandler.handleDeepLink(data)
|
||||
android.util.Log.e("DeepLinkDebug", "RootViewModel.handleDeepLink: result=$result exceptionOrNull=${result.exceptionOrNull()}")
|
||||
result
|
||||
.onFailureInstance<DeepLinkHandlingException, Unit> {
|
||||
val errorMessage = formatDeepLinkHandlingException(resourceManager, it)
|
||||
showError(errorMessage)
|
||||
|
||||
@@ -2778,6 +2778,8 @@
|
||||
<string name="pezkuwi_dashboard_tracking_success">Score tracking started!</string>
|
||||
<string name="pezkuwi_dashboard_kurds_title">Hejmara Kurd Le Cihane</string>
|
||||
<string name="pezkuwi_dashboard_mining_simulation_title">Mining Simulation</string>
|
||||
<string name="pezkuwi_dashboard_mining_airdrop_label">PEZ Airdrop</string>
|
||||
<string name="pezkuwi_dashboard_mining_needs_trust_score">Trust score must be greater than 0 for mining to start</string>
|
||||
|
||||
<string name="pending_signatures_title">Pending Signatures</string>
|
||||
<string name="pending_signatures_sign">Sign</string>
|
||||
|
||||
+5
@@ -316,6 +316,11 @@ class BalanceListViewModel(
|
||||
if (alreadyActive) return@launch
|
||||
|
||||
val trustScore = pezkuwiDashboardFlow.first()?.trustScoreRaw ?: BigInteger.ZERO
|
||||
if (trustScore <= BigInteger.ZERO) {
|
||||
showError(resourceManager.getString(R.string.pezkuwi_dashboard_mining_needs_trust_score))
|
||||
return@launch
|
||||
}
|
||||
|
||||
miningSimulationRepository.activate(metaAccount.id, trustScore, now)
|
||||
miningRefreshSignal.value++
|
||||
}
|
||||
|
||||
@@ -166,6 +166,15 @@
|
||||
android:src="@drawable/ic_telegram" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:text="@string/pezkuwi_dashboard_mining_airdrop_label"
|
||||
android:textColor="#FDB813"
|
||||
android:textSize="10sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/pezkuwiDashboardMiningSquare"
|
||||
android:layout_width="64dp"
|
||||
|
||||
Reference in New Issue
Block a user