Skip to content

Commit

Permalink
merging #30
Browse files Browse the repository at this point in the history
  • Loading branch information
shiv19 committed Apr 3, 2019
2 parents 098361c + a6a67ae commit 00aef6b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/modal-datetimepicker.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,8 @@ export class ModalDatetimepicker {
if (options.startingDate) startDate = options.startingDate;

try {
let themeId = 0;
if (options.theme && options.theme === "dark") {
themeId = android.app.AlertDialog.THEME_DEVICE_DEFAULT_DARK;
}

if (options.datePickerMode && options.datePickerMode === "spinner") {
themeId = android.app.AlertDialog.THEME_HOLO_LIGHT;
if (options.theme && options.theme === "dark") {
themeId = android.app.AlertDialog.THEME_HOLO_DARK;
}
}

this.datePicker = new android.app.DatePickerDialog(
let datePicker = new android.app.DatePickerDialog(
app.android.foregroundActivity,
themeId,
new android.app.DatePickerDialog.OnDateSetListener({
onDateSet: (view, year, monthOfYear, dayOfMonth) => {
const date: DateResponse = {
Expand Down

0 comments on commit 00aef6b

Please sign in to comment.