[Libreoffice-commits] .: android/experimental
Michael Meeks
michael at kemper.freedesktop.org
Fri Jun 29 08:05:47 PDT 2012
android/experimental/LibreOffice4Android/src/org/libreoffice/ui/FileUtilities.java | 5 +++++
android/experimental/LibreOffice4Android/src/org/libreoffice/ui/GridItemAdapter.java | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 98ec4db47a402a4d4811ecacd910a347c4e1689e
Author: Michael Meeks <michael.meeks at suse.com>
Date: Fri Jun 29 16:04:01 2012 +0100
android: add more extensions, fix build issue
diff --git a/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/FileUtilities.java b/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/FileUtilities.java
index a76d45b..40975f8 100644
--- a/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/FileUtilities.java
+++ b/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/FileUtilities.java
@@ -47,6 +47,9 @@ public class FileUtilities {
mExtnMap.put(".docx", DOC);
mExtnMap.put(".html", DOC);
mExtnMap.put(".txt", DOC);
+ mExtnMap.put(".wpd", DOC);
+ mExtnMap.put(".wps", DOC);
+ mExtnMap.put(".lwp", DOC);
mExtnMap.put(".ods", CALC);
mExtnMap.put(".sxc", CALC);
@@ -58,7 +61,9 @@ public class FileUtilities {
mExtnMap.put(".ppt", IMPRESS);
mExtnMap.put(".pptx", IMPRESS);
+ mExtnMap.put(".svg", DRAWING);
mExtnMap.put(".vsd", DRAWING);
+ mExtnMap.put(".wpg", DRAWING);
// FIXME: we need to expand this ...
}
diff --git a/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/GridItemAdapter.java b/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/GridItemAdapter.java
index 52ff99e..1c20249 100644
--- a/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/GridItemAdapter.java
+++ b/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/GridItemAdapter.java
@@ -92,7 +92,7 @@ public class GridItemAdapter extends BaseAdapter{
case FileUtilities.CALC:
imageView.setImageResource(R.drawable.calc);
break;
- case FileUtilities.DRAW: // FIXME: only for now ...
+ case FileUtilities.DRAWING: // FIXME: only for now ...
case FileUtilities.IMPRESS:
imageView.setImageResource(R.drawable.impress);
break;
More information about the Libreoffice-commits
mailing list