Skip to content

Commit

Permalink
Merge branch 'hotfix/4.0.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
subsymbolic committed Jan 24, 2018
2 parents 7d85c20 + f4d3320 commit 0a0bd95
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'kotlin-kapt'
apply from: '../versioning.gradle'

ext {
VERSION_NAME = "4.0.9"
VERSION_NAME = "4.0.10"
}

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import android.view.KeyEvent.KEYCODE_ENTER
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.view.View.FOCUSABLE
import android.view.inputmethod.EditorInfo.IME_ACTION_DONE
import android.webkit.CookieManager
import android.webkit.WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE
Expand Down Expand Up @@ -107,14 +106,14 @@ class BrowserActivity : DuckDuckGoActivity() {
popupMenu = BrowserPopupMenu(layoutInflater)
}

// inspired by https://stackoverflow.com/a/8011027/73479
private fun createWebView() {
webView = NestedWebView(this.applicationContext)
webView = NestedWebView(this)
webView.gone()
webView.isFocusableInTouchMode = true
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
webView.focusable = FOCUSABLE
webView.focusable = View.FOCUSABLE
}

webViewContainer.addView(webView)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class DuckDuckGoApplication : HasActivityInjector, HasServiceInjector, Applicati
.doAfterTerminate({
appConfigurationSyncer.scheduleRegularSync(this)
})
.subscribe({}, { Timber.w(it, "Failed to download initial app configuration") })
.subscribe({}, { Timber.w("Failed to download initial app configuration ${it.localizedMessage}") })
}

override fun activityInjector(): AndroidInjector<Activity> = activityInjector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AppConfigurationDownloader @Inject constructor(
val disconnectDownload = trackerDataDownloader.downloadList(Client.ClientName.DISCONNECT)
val httpsUpgradeDownload = httpsUpgradeListDownloader.downloadList()

return Completable.merge(listOf(
return Completable.mergeDelayError(listOf(
easyListDownload.subscribeOn(Schedulers.io()),
easyPrivacyDownload.subscribeOn(Schedulers.io()),
trackersWhitelist.subscribeOn(Schedulers.io()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ class AppConfigurationJobService : JobService() {
override fun onStartJob(params: JobParameters?): Boolean {
Timber.i("onStartJob")

appConfigurationDownloader.downloadTask()
downloadTask= appConfigurationDownloader.downloadTask()
.subscribeOn(Schedulers.io())
.subscribe({
Timber.i("Successfully downloaded all data")
jobFinishedSuccessfully(params)
}, {
Timber.w(it, "Failed to download app configuration")
Timber.w("Failed to download app configuration ${it.localizedMessage}")
jobFinishedFailed(params)
})

Expand Down

0 comments on commit 0a0bd95

Please sign in to comment.