Skip to content

Conversation

@CDRussell
Copy link
Member

Task/Issue URL: https://app.asana.com/0/72649045549333/749739069164807
Tech Design URL:
CC:

Description:
Workaround for the WebView bug where visited links were rendered a different colour, even after the history was cleared.

WebView bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=709627

Steps to test this PR:

  1. Click on a link, then navigate back. You should see the link has changed colour
  2. Hit the 🔥button, and confirm you want to clear data
  3. Verify the 🔥animation displays briefly
  4. Verify you are shown the Browser again
  5. Visit the same page you were on previously; verify the link colour is normal and not the visited link colour

Repeat the steps above, but with some tougher scenarios for the FireActivity; rotate it, hit the home and return to the app etc...


Internal references:

Software Engineering Expectations
Technical Design Template

Requires a few tweaks along the way, mainly around nullability of variables
# Conflicts:
#	app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt
#	build.gradle
Copy link
Contributor

@brindy brindy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Couple of minor comments...

companion object {
private const val KEY_RESTART_INTENTS = "KEY_RESTART_INTENTS"

fun triggerRebirth(context: Context) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds messy :) how about triggerRestart ?

configureDependencyInjection()

if(appIsRestarting()) return

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format?



abstract class LottieAnimationListener : Animator.AnimatorListener {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (savedInstanceState == null) {

fireAnimationView.addAnimatorListener(object : LottieAnimationListener() {
override fun onAnimationStart(p0: Animator?) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CDRussell CDRussell merged commit dddc07a into develop Aug 27, 2018
@CDRussell CDRussell deleted the feature/fire_button_visited_sites_fix branch August 27, 2018 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants