commit 2ceacf689213267cae779512ce0c44781f679f2c Author: n8fr8 nathan@freitas.net Date: Wed Jan 3 09:17:32 2018 -0500
move bridges to raw resources --- .../src/main/java/org/torproject/android/service/TorService.java | 2 +- orbotservice/src/main/{assets => res/raw}/bridges.txt | 0 2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/orbotservice/src/main/java/org/torproject/android/service/TorService.java b/orbotservice/src/main/java/org/torproject/android/service/TorService.java index 520bbe5f..7e12f37e 100644 --- a/orbotservice/src/main/java/org/torproject/android/service/TorService.java +++ b/orbotservice/src/main/java/org/torproject/android/service/TorService.java @@ -1912,7 +1912,7 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon try { BufferedReader in= - new BufferedReader(new InputStreamReader(getAssets().open("bridges.txt"), "UTF-8")); + new BufferedReader(new InputStreamReader(getResources().openRawResource(R.raw.bridges), "UTF-8")); String str;
while ((str=in.readLine()) != null) { diff --git a/orbotservice/src/main/assets/bridges.txt b/orbotservice/src/main/res/raw/bridges.txt similarity index 100% rename from orbotservice/src/main/assets/bridges.txt rename to orbotservice/src/main/res/raw/bridges.txt
tor-commits@lists.torproject.org