Conversation
1. Added: - method that opens Google Play link in WebUtils class
1. Added: - canShowRateAppDialog, increaseHashGenerationCount, save and getIntPreference methods to SharedPreferencesSettingsHelper class; - key_hash_generation_count string to strings-non-translatable.
1. Added: - AppAlertDialog that shows Rate App dialog in HashCalculatorFragment; - rate app strings to strings.xml.
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.
Update SettingsHelper
injection in HashCalculatorFragment
.
@@ -97,6 +100,24 @@ | |||
); | |||
} else { | |||
etGeneratedHash.setText(hashValue); | |||
SharedPreferencesSettingsHelper settingsHelper = new SharedPreferencesSettingsHelper(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.
You need to use SettingsHelper
instance from Dagger injection. If a class don't contains SettingsHelper
injection, add it as local public field with @Inject
annotation.
1. Added: - usage of SettingsHelper instance from Dagger injection in HashCalculatorFragment; - declaration of methods from SharedPreferencesSettingsHelper class to SettingsHelper interface; - RateAppDialogTest class extending BaseUITest.
@@ -41,4 +43,7 @@ | |||
|
|||
void setRefreshSelectedFileStatus(boolean status); | |||
|
|||
boolean canShowRateAppDialog(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.
Delete Context
argument from canShowRateAppDialog
and increaseHashGenerationCount
methods. Context available in interface realization (SharedPreferencesSettingsHelper
).
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.
okay!
@vipozdn Also, check Codacy report. In last commit you have some code issues. |
3. Updated: - documentation by fartem. 4. Deleted: - unused import at HashCalculatorFragment class.
1. Deleted: - Context argument from canShowRateAppDialog and increaseHashGenerationCount methods at SettingsHelper, SharedPreferencesSettingsHelper and HashCalculatorFragment; - unused import at SettingsHelper class.
@vipozdn thanks. |
I'm always happy to help! |
Checklist
Common
UI
Logic
Changes
Describe all changes here:
Comments
Describe all additional information here.