-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Migrate ContactsPreferenceActivity startup to type-safe API #6289
Migrate ContactsPreferenceActivity startup to type-safe API #6289
Conversation
Screenshot test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/14468-Screenshot |
a623761
to
10e31ac
Compare
Screenshot test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/14469-Screenshot |
10e31ac
to
a9f0ed5
Compare
This change addresses #6277 bug in more comprehensible way. All calls to Context.startActivity(...) starthing ContactsPreferenceActivity are replaced with type-safe calls to static ContactsPreferenceActivity.startActivity* sets of APIs. No client code should be calling `Intent(..., ContactsPreferenceActivity.class)` constructor anymore. See #5866 for discussion about the pattern used in this PR. Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
a9f0ed5
to
3e3d80d
Compare
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14471.apk |
stable-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/14471-IT |
Screenshot test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/14470-Screenshot |
IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/14470-IT |
1 similar comment
IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/14470-IT |
Codacy393Lint
SpotBugs (new)
SpotBugs (master)
|
Works fine for me and code looks good too 👍 @tobiasKaminsky why do we launch the contact backup screen when clicking on a vcf file? (out of scope for this PR!) |
This change addresses #6277 bug in more comprehensible way.
All calls to Context.startActivity(...) starthing
ContactsPreferenceActivity are replaced with type-safe
calls to static ContactsPreferenceActivity.startActivity*
sets of APIs.
No client code should be calling
Intent(..., ContactsPreferenceActivity.class)
constructor anymore.
See #5866 for discussion about the pattern used in this PR.
Signed-off-by: Chris Narkiewicz hello@ezaquarii.com
ContactsBackupFragment
us of sidebar extra - default values are differentContactsBackupFragment
to type-safe API as well