summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYigit Boyar <yboyar@google.com>2016-03-29 17:20:57 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-03-29 17:20:57 +0000
commitf95355e1d23adfc42b3ad036919ee22931e05eeb (patch)
tree06ed3b1b820228e6e7dd22dac671df9559386481
parentb1f1dc2a28cf94a59c9305a3a49d3dd122ae886e (diff)
parentbfec8f58feb977598336a3d4ed86dcd9dd372b98 (diff)
downloaddata-binding-f95355e1d23adfc42b3ad036919ee22931e05eeb.tar.gz
carry over encoding.
am: bfec8f5 * commit 'bfec8f58feb977598336a3d4ed86dcd9dd372b98': carry over encoding. Change-Id: I51369a1fa214fd9175d0d4bc31d4097246679b62
-rw-r--r--compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java b/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
index 1514ae64..62554168 100644
--- a/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
+++ b/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
@@ -71,7 +71,7 @@ public class XmlEditor {
}
ArrayList<String> lines = new ArrayList<String>();
- lines.addAll(FileUtils.readLines(f, "utf-8"));
+ lines.addAll(FileUtils.readLines(f, encoding));
for (ElementContext it : dataNodes) {
replace(lines, toPosition(it.getStart()), toEndPosition(it.getStop()), "");