summaryrefslogtreecommitdiffstats
path: root/core/java/android/app
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2010-12-17 16:00:18 -0800
committerSvetoslav Ganov <svetoslavganov@google.com>2010-12-17 16:00:18 -0800
commitbf80562d22b2bbe7944d80d0524c69d0238010cb (patch)
tree50546c77f066c6f3a618a37f6808aa0ff9409a21 /core/java/android/app
parent2b9484f453ef307880a93240bb050b39af72bee2 (diff)
downloadframeworks_base-bf80562d22b2bbe7944d80d0524c69d0238010cb.zip
frameworks_base-bf80562d22b2bbe7944d80d0524c69d0238010cb.tar.gz
frameworks_base-bf80562d22b2bbe7944d80d0524c69d0238010cb.tar.bz2
Bug 3191746. atePicker TimePicker: Dark theme is used in a Light theme app
Change-Id: I20d0cca3b78af9db80854a57c88d6cab3b00f555
Diffstat (limited to 'core/java/android/app')
-rw-r--r--core/java/android/app/AlertDialog.java1
-rw-r--r--core/java/android/app/DatePickerDialog.java5
-rw-r--r--core/java/android/app/TimePickerDialog.java7
3 files changed, 2 insertions, 11 deletions
diff --git a/core/java/android/app/AlertDialog.java b/core/java/android/app/AlertDialog.java
index 5dc29a9..d9cafb6 100644
--- a/core/java/android/app/AlertDialog.java
+++ b/core/java/android/app/AlertDialog.java
@@ -24,7 +24,6 @@ import android.database.Cursor;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Message;
-import android.util.Log;
import android.util.TypedValue;
import android.view.ContextThemeWrapper;
import android.view.KeyEvent;
diff --git a/core/java/android/app/DatePickerDialog.java b/core/java/android/app/DatePickerDialog.java
index efe527f..448b3ef 100644
--- a/core/java/android/app/DatePickerDialog.java
+++ b/core/java/android/app/DatePickerDialog.java
@@ -71,10 +71,7 @@ public class DatePickerDialog extends AlertDialog implements OnClickListener,
int year,
int monthOfYear,
int dayOfMonth) {
- this(context, context.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.HONEYCOMB
- ? com.android.internal.R.style.Theme_Holo_Dialog_Alert
- : com.android.internal.R.style.Theme_Dialog_Alert,
- callBack, year, monthOfYear, dayOfMonth);
+ this(context, 0, callBack, year, monthOfYear, dayOfMonth);
}
/**
diff --git a/core/java/android/app/TimePickerDialog.java b/core/java/android/app/TimePickerDialog.java
index 26af4eb..f9920c7 100644
--- a/core/java/android/app/TimePickerDialog.java
+++ b/core/java/android/app/TimePickerDialog.java
@@ -21,7 +21,6 @@ import com.android.internal.R;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
-import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
@@ -72,11 +71,7 @@ public class TimePickerDialog extends AlertDialog
public TimePickerDialog(Context context,
OnTimeSetListener callBack,
int hourOfDay, int minute, boolean is24HourView) {
- this(context,
- context.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.HONEYCOMB
- ? com.android.internal.R.style.Theme_Holo_Dialog_Alert
- : com.android.internal.R.style.Theme_Dialog_Alert,
- callBack, hourOfDay, minute, is24HourView);
+ this(context, 0, callBack, hourOfDay, minute, is24HourView);
}
/**