aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/export/GpxExport.java
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2013-02-14 23:02:12 +0100
committerrsudev <rasch@munin-soft.de>2013-02-14 23:02:12 +0100
commit0dbe6e3f884a1e4a5008fd97e8a91422bdf1f4a7 (patch)
tree52550aab886f45af7ae573fbe0fc5ffd2a32b789 /main/src/cgeo/geocaching/export/GpxExport.java
parent7106273249ed67a1e95ce8e5c1acf49b583ce190 (diff)
downloadcgeo-0dbe6e3f884a1e4a5008fd97e8a91422bdf1f4a7.zip
cgeo-0dbe6e3f884a1e4a5008fd97e8a91422bdf1f4a7.tar.gz
cgeo-0dbe6e3f884a1e4a5008fd97e8a91422bdf1f4a7.tar.bz2
Fixes #2445, Light theme broken
Added theme application to some dialogs Forced dark theme on custom AlertDialog views, as these are always dark.
Diffstat (limited to 'main/src/cgeo/geocaching/export/GpxExport.java')
-rw-r--r--main/src/cgeo/geocaching/export/GpxExport.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/export/GpxExport.java b/main/src/cgeo/geocaching/export/GpxExport.java
index d130e1f..74ee072 100644
--- a/main/src/cgeo/geocaching/export/GpxExport.java
+++ b/main/src/cgeo/geocaching/export/GpxExport.java
@@ -28,6 +28,7 @@ import android.net.Uri;
import android.os.AsyncTask;
import android.os.Environment;
import android.util.Xml;
+import android.view.ContextThemeWrapper;
import android.view.View;
import android.widget.CheckBox;
import android.widget.TextView;
@@ -67,7 +68,8 @@ class GpxExport extends AbstractExport {
private Dialog getExportDialog(final List<Geocache> caches, final Activity activity) {
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
- View layout = activity.getLayoutInflater().inflate(R.layout.gpx_export_dialog, null);
+ // AlertDialog has always dark style, so we have to apply it as well always
+ View layout = View.inflate(new ContextThemeWrapper(activity, R.style.dark), R.layout.gpx_export_dialog, null);
builder.setView(layout);
final TextView text = (TextView) layout.findViewById(R.id.info);