-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add jetpack compose #1280
Conversation
common/src/main/java/org/dash/wallet/common/ui/components/MenuItem.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ChatGPT generated code can use some fixes around toggle, but otherwise looks good
@Deprecated("Deprecated in Java") | ||
override fun onPreExecute() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these were added after running the 1.8 to 1.9 migration tool.
walletUriResultLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result -> | ||
var resultIntent: Intent? = null | ||
if (result.resultCode == Activity.RESULT_OK) { | ||
val data = result.data | ||
val requestData = intent.data | ||
val transactionHash = BitcoinIntegration.transactionHashFromResult(data) | ||
resultIntent = WalletUri.createPaymentResult(requestData, transactionHash) | ||
} | ||
setResult(result.resultCode, resultIntent) | ||
finish() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaces deprecated onActiivtyResult
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not used internally, but when apps externally request data using dashwallet://...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Issue being fixed or feature implemented
Related PR's and Dependencies
Screenshots / Videos
How Has This Been Tested?
Checklist: