Browse Source

Fix bug with update notification keeps sending pings

master 83.0.4103.116-2
wchen342 2 years ago
parent
commit
28fbfe5dd0
Signed by untrusted user: wchen342 GPG Key ID: 720B70365E800508
  1. 3
      CHANGELOG.md
  2. 6
      patches/ungoogled-chromium-android/enable-update-notification.patch

3
CHANGELOG.md

@ -1,3 +1,6 @@
# 83.0.4103.116-2
* Fix bug with update notification keeps sending pings
# 83.0.4103.116-1
* Add update notification (resolve [#22](https://git.droidware.info/wchen342/ungoogled-chromium-android/issues/22)). Note: this is disabled by default since it will ping my server at [uc.droidware.info](https://uc.droidware.info). To enable, change `#enable-inline-update-flow` to `Enabled`.
* Update: the functionality currently has a bug that will make it send continuous bursts of requests to my server. Please DO NOT enable it for now. This will be fixed in the next version.

6
patches/ungoogled-chromium-android/enable-update-notification.patch

@ -1,6 +1,6 @@
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omaha/inline/UCInlineUpdateController.java
@@ -0,0 +1,211 @@
@@ -0,0 +1,213 @@
+// Copyright 2020 The Ungoogled-Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
@ -137,7 +137,9 @@
+ if (isNewVersionAvailable(result)) {
+ postStatus(UpdateStatusProvider.UpdateState.INLINE_UPDATE_AVAILABLE);
+ } else {
+ postStatus(UpdateStatusProvider.UpdateState.NONE);
+ if (mUpdateState != UpdateStatusProvider.UpdateState.NONE) {
+ postStatus(UpdateStatusProvider.UpdateState.NONE);
+ }
+ }
+ });
+ break;

Loading…
Cancel
Save