Dbrant has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/136754

Change subject: Don't use hard-coded file directory.
......................................................................

Don't use hard-coded file directory.

Change-Id: Iaee0340a29968ddefa706b4d82eea0275600b00d
---
M wikipedia/src/main/java/org/wikipedia/bridge/DownloadedStyleBundle.java
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia 
refs/changes/54/136754/1

diff --git 
a/wikipedia/src/main/java/org/wikipedia/bridge/DownloadedStyleBundle.java 
b/wikipedia/src/main/java/org/wikipedia/bridge/DownloadedStyleBundle.java
index 12476eb..3704fc3 100644
--- a/wikipedia/src/main/java/org/wikipedia/bridge/DownloadedStyleBundle.java
+++ b/wikipedia/src/main/java/org/wikipedia/bridge/DownloadedStyleBundle.java
@@ -1,5 +1,7 @@
 package org.wikipedia.bridge;
 
+import org.wikipedia.WikipediaApp;
+
 /**
  * A bundle of CSS files that have been downloaded by the app,
  * independent of the ones shipped in the assets folder.
@@ -11,6 +13,6 @@
      * @param styles Array of CSS File names that are available together in
      */
     public DownloadedStyleBundle(String... styles) {
-        super("file:///data/data/org.wikipedia/files/", styles);
+        super("file://" + WikipediaApp.getInstance().getFilesDir().toString() 
+ "/", styles);
     }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/136754
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaee0340a29968ddefa706b4d82eea0275600b00d
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Dbrant <dbr...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to