-
Notifications
You must be signed in to change notification settings - Fork 170
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: disable battery optimization #1214
Conversation
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.
@HashEngineering some changes are needed to avoid passing WalletApplication
to the report dialog since we want to reduce our reliability on this god-class.
@@ -1114,4 +1117,15 @@ public void checkSendingConditions( | |||
crowdNodeConfig | |||
); | |||
} | |||
|
|||
public final HashCode apkHash() throws IOException { |
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 should be moved to PackageInfoProvider
, and then getPackageCodePath()
can be accessed from the @ApplicationContext private val context: Context
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 changes were made.
final PackageInfoProvider packageInfoProvider, | ||
final Configuration configuration, | ||
final Wallet wallet, | ||
final WalletApplication application |
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.
We shouldn't provide the entire WalletApplication
to this dialog - I made some changes recently so that PackageInfoProvider
has everything needed here.
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 changes were made.
…hevo/dash-wallet into feature-battery-optimization
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 great
Issue being fixed or feature implemented
Report Changes:
Related PR's and Dependencies
Screenshots / Videos
How Has This Been Tested?
Checklist: