Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29445587: Issue 5223 - App is freezing sometimes (Closed)

Created:
May 22, 2017, 10:04 a.m. by jens
Modified:
June 27, 2017, 9:40 a.m.
CC:
Felix Dahlke
Visibility:
Public.

Description

Issue 5223 - App is freezing sometimes

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed AsycTask, added ProgressDialog for pendig subscriptions, deleted locks on UI thread #

Patch Set 3 : Added separate texts for adding/removing a subscription #

Patch Set 4 : Added translations for new strings #

Total comments: 6

Patch Set 5 : Fixed formatting and set dialog = null #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -20 lines) Patch
M adblockplussbrowser/res/values-de/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-el/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-es/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-fr/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-it/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-ko/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-nl/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-pl/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-pt/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-ru/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values-tr/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/res/values/strings.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java View 1 2 3 4 3 chunks +21 lines, -1 line 1 comment Download
M adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java View 1 2 3 4 5 chunks +25 lines, -19 lines 1 comment Download
M adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8
jens
May 22, 2017, 1:50 p.m. (2017-05-22 13:50:01 UTC) #1
diegocarloslima
https://codereview.adblockplus.org/29445587/diff/29445588/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java File adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java (right): https://codereview.adblockplus.org/29445587/diff/29445588/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java#newcode283 adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java:283: new CreateAndWriteFileAsyncTask().execute(serviceContext, subscriptions); I might be wrong, but it ...
May 25, 2017, 9:20 p.m. (2017-05-25 21:20:45 UTC) #2
jens
https://codereview.adblockplus.org/29445587/diff/29445588/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java File adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java (right): https://codereview.adblockplus.org/29445587/diff/29445588/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java#newcode283 adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java:283: new CreateAndWriteFileAsyncTask().execute(serviceContext, subscriptions); On 2017/05/25 21:20:45, diegocarloslima wrote: > ...
June 1, 2017, 3:32 p.m. (2017-06-01 15:32:08 UTC) #3
jens
June 1, 2017, 4:35 p.m. (2017-06-01 16:35:59 UTC) #4
anton
https://codereview.adblockplus.org/29445587/diff/29470652/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java File adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java (right): https://codereview.adblockplus.org/29445587/diff/29470652/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java#newcode266 adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java:266: dialog.dismiss(); don't we need to `dialog = null` after ...
June 26, 2017, 1:49 p.m. (2017-06-26 13:49:35 UTC) #5
jens
https://codereview.adblockplus.org/29445587/diff/29470652/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java File adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java (right): https://codereview.adblockplus.org/29445587/diff/29470652/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java#newcode266 adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java:266: dialog.dismiss(); On 2017/06/26 13:49:34, anton wrote: > don't we ...
June 26, 2017, 2:05 p.m. (2017-06-26 14:05:20 UTC) #6
jens
June 26, 2017, 2:06 p.m. (2017-06-26 14:06:01 UTC) #7
anton
June 26, 2017, 2:45 p.m. (2017-06-26 14:45:54 UTC) #8
https://codereview.adblockplus.org/29445587/diff/29474598/adblockplussbrowser...
File
adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java
(right):

https://codereview.adblockplus.org/29445587/diff/29474598/adblockplussbrowser...
adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java:257:
this.dialog = ProgressDialog.show(this, null, enabled ?
would it not be better to have it like this ".. enabled
  ? ..
  : .."

not insisting though

https://codereview.adblockplus.org/29445587/diff/29474598/adblockplussbrowser...
File
adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java
(right):

https://codereview.adblockplus.org/29445587/diff/29474598/adblockplussbrowser...
adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java:268:
public void subscriptionStateChanged() {
"{" should be on the next line.
LGTM in general

Powered by Google App Engine
This is Rietveld