summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorArtur Dryomov <artur.dryomov@gmail.com>2013-03-14 14:25:55 +0300
committerMichael Meeks <michael.meeks@suse.com>2013-03-14 13:39:55 +0000
commit61686edf7074ab72d03ca2f73022797443a61fa9 (patch)
tree27726d9aa4b008364c57df89413c108927a17d4d /android
parent0bd9229fdeb4bcf3023bef65257ff8317590455a (diff)
fdo#60604 - fix Impress remote client speaker notes encoding
There is nothing wrong with the current code, it is the Android’s problem. Issue was reported upstream: https://code.google.com/p/android/issues/detail?id=1733#c23 Tested on Jelly Bean 4.2 and russian speaker notes. Reviewed-on: https://gerrit.libreoffice.org/2723 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com> Conflicts: android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java Change-Id: I85414abac233186484078637073b97562b81aad2 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'android')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java b/android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java
index bb24d40a7ced..0aab5a640df5 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java
@@ -100,7 +100,7 @@ public class PresentationFragment extends SherlockFragment {
mNotes = (WebView) v.findViewById(R.id.presentation_notes);
String summary = "<html><body>This is just a test<br/><ul><li>And item</li><li>And again</li></ul>More text<br/>Blabla<br/>Blabla<br/>blabla<br/>Blabla</body></html>";
- mNotes.loadData(summary, "text/html", null);
+ mNotes.loadDataWithBaseURL(null, summary, "text/html", "UTF-8", null);
mNotes.setBackgroundColor(Color.TRANSPARENT);
mTopView = (CoverFlow) v.findViewById(R.id.presentation_coverflow);
@@ -156,8 +156,8 @@ public class PresentationFragment extends SherlockFragment {
// int aSlide = mCommunicationService.getSlideShow().getCurrentSlide();
mNumberText.setText((aPosition + 1) + "/"
+ mCommunicationService.getSlideShow().getSize());
- mNotes.loadData(mCommunicationService.getSlideShow()
- .getNotes(aPosition), "text/html", null);
+ mNotes.loadDataWithBaseURL(null, mCommunicationService.getSlideShow()
+ .getNotes(aPosition), "text/html", "UTF-8", null);
}
// -------------------------------------------------- RESIZING LISTENER ----
@@ -281,8 +281,8 @@ public class PresentationFragment extends SherlockFragment {
CommunicationService.MSG_SLIDE_NOTES)) {
int aPosition = aIntent.getExtras().getInt("slide_number");
if ( aPosition == mTopView.getSelectedItemPosition() ) {
- mNotes.loadData(mCommunicationService.getSlideShow()
- .getNotes(aPosition), "text/html", null);
+ mNotes.loadDataWithBaseURL(null, mCommunicationService.getSlideShow()
+ .getNotes(aPosition), "text/html", "UTF-8", null);
}
}