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

Issue 29375826: Issue 4903 - Allow to specify file system root (Closed)

Created:
Feb. 16, 2017, 11:41 a.m. by anton
Modified:
March 17, 2017, 8:26 p.m.
CC:
Felix Dahlke, sergei
Visibility:
Public.

Description

Issue 4903 - Allow to specify file system root

Patch Set 1 #

Total comments: 5

Patch Set 2 : updated README #

Total comments: 3

Patch Set 3 : removed init(), added doc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -5 lines) Patch
M README.md View 1 1 chunk +1 line, -1 line 0 comments Download
M libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java View 1 2 3 chunks +10 lines, -3 lines 0 comments Download
M libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java View 1 2 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 14
anton
Feb. 16, 2017, 11:42 a.m. (2017-02-16 11:42:17 UTC) #1
anton
https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode110 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:110: public void init(Context context, boolean developmentBuild, String preferenceName) for ...
Feb. 16, 2017, 11:43 a.m. (2017-02-16 11:43:44 UTC) #2
anton
https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode112 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:112: init(context, context.getCacheDir().getAbsolutePath(), developmentBuild, preferenceName); for back compatibility it's better ...
Feb. 16, 2017, 11:47 a.m. (2017-02-16 11:47:16 UTC) #3
anton
https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode112 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:112: init(context, context.getCacheDir().getAbsolutePath(), developmentBuild, preferenceName); On 2017/02/16 11:47:15, anton wrote: ...
Feb. 16, 2017, 11:49 a.m. (2017-02-16 11:49:25 UTC) #4
René Jeschke
LGTM
March 9, 2017, 11:07 a.m. (2017-03-09 11:07:43 UTC) #5
sergei
https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode110 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:110: public void init(Context context, boolean developmentBuild, String preferenceName) On ...
March 13, 2017, 8:49 a.m. (2017-03-13 08:49:23 UTC) #6
anton
https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29375826/diff/29375827/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode110 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:110: public void init(Context context, boolean developmentBuild, String preferenceName) On ...
March 13, 2017, 9:16 a.m. (2017-03-13 09:16:32 UTC) #7
diegocarloslima
https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode112 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:112: init(context, context.getCacheDir().getAbsolutePath(), developmentBuild, preferenceName); As you already pointed, it ...
March 13, 2017, 1:58 p.m. (2017-03-13 13:58:11 UTC) #8
anton
https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode112 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:112: init(context, context.getCacheDir().getAbsolutePath(), developmentBuild, preferenceName); On 2017/03/13 13:58:11, diegocarloslima wrote: ...
March 14, 2017, 4:15 a.m. (2017-03-14 04:15:26 UTC) #9
diegocarloslima
https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode112 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:112: init(context, context.getCacheDir().getAbsolutePath(), developmentBuild, preferenceName); On 2017/03/14 04:15:26, anton wrote: ...
March 16, 2017, 7:55 p.m. (2017-03-16 19:55:24 UTC) #10
anton
On 2017/03/16 19:55:24, diegocarloslima wrote: > https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java > File > libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java > (right): > > ...
March 17, 2017, 6:48 a.m. (2017-03-17 06:48:01 UTC) #11
diegocarloslima
On 2017/03/17 06:48:01, anton wrote: > On 2017/03/16 19:55:24, diegocarloslima wrote: > > > https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java ...
March 17, 2017, 1:13 p.m. (2017-03-17 13:13:10 UTC) #12
anton
On 2017/03/17 13:13:10, diegocarloslima wrote: > On 2017/03/17 06:48:01, anton wrote: > > On 2017/03/16 ...
March 17, 2017, 7:37 p.m. (2017-03-17 19:37:51 UTC) #13
diegocarloslima
March 17, 2017, 7:46 p.m. (2017-03-17 19:46:33 UTC) #14
On 2017/03/17 19:37:51, anton wrote:
> On 2017/03/17 13:13:10, diegocarloslima wrote:
> > On 2017/03/17 06:48:01, anton wrote:
> > > On 2017/03/16 19:55:24, diegocarloslima wrote:
> > > >
> > >
> >
>
https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-andr...
> > > > File
> > > >
> > >
> >
>
libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java
> > > > (right):
> > > > 
> > > >
> > >
> >
>
https://codereview.adblockplus.org/29375826/diff/29382559/libadblockplus-andr...
> > > >
> > >
> >
>
libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:112:
> > > > init(context, context.getCacheDir().getAbsolutePath(), developmentBuild,
> > > > preferenceName);
> > > > On 2017/03/14 04:15:26, anton wrote:
> > > > > On 2017/03/13 13:58:11, diegocarloslima wrote:
> > > > > > As you already pointed, it would be better to use getFilesDir()
here,
> > > since
> > > > > the
> > > > > > cache can be cleared out by the system
> > > > > 
> > > > > Well, i'd prefer to remove it at all or leave as-is because of
> > > > > back-compatibility.
> > > > > I don't see any reason for any app "default" directories (like
> > getCacheDir()
> > > > or
> > > > > getFilesDir()) to be the only suitable and reasonable directory for
the
> > > files
> > > > so
> > > > > i believe the user should make the decision himself.
> > > > 
> > > > I'm not against removing it, but if we decide to keep it, I would vote
for
> > > > changing it, because we want to provide the best blocking experience
> > possible,
> > > > and storing on cache directory which could be cleared by the system, can
> > > > compromise that
> > > 
> > > Let's just remove init() with default path?
> > 
> > I'm OK with that
> 
> see patch set #3

LGTM

Powered by Google App Engine
This is Rietveld