summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup/DateTimePage.java
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-02-23 14:33:07 -0800
committercretin45 <cretin45@gmail.com>2015-02-23 14:33:07 -0800
commitd7e70040b79dafe475de5205836d714a52a2506a (patch)
treed07f74a9a3e54dff8a848818f156edde28d120cb /src/com/cyanogenmod/setupwizard/setup/DateTimePage.java
parentc4584a78e30444b336dd6788334af6432b1ca466 (diff)
downloadpackages_apps_SetupWizard-d7e70040b79dafe475de5205836d714a52a2506a.zip
packages_apps_SetupWizard-d7e70040b79dafe475de5205836d714a52a2506a.tar.gz
packages_apps_SetupWizard-d7e70040b79dafe475de5205836d714a52a2506a.tar.bz2
SetupWizard: Refactor context type
Context is assumed to be SetupWizardActivity and blindly cast. Just make the Context reference a SetupWizardActivity. Change-Id: I3d7ffd08980fbff0fbea51b45b28002b49813038
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/DateTimePage.java')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/DateTimePage.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/DateTimePage.java b/src/com/cyanogenmod/setupwizard/setup/DateTimePage.java
index 39d3f85..d953a53 100644
--- a/src/com/cyanogenmod/setupwizard/setup/DateTimePage.java
+++ b/src/com/cyanogenmod/setupwizard/setup/DateTimePage.java
@@ -16,11 +16,6 @@
package com.cyanogenmod.setupwizard.setup;
-import com.cyanogenmod.setupwizard.R;
-import com.cyanogenmod.setupwizard.ui.SetupPageFragment;
-
-import org.xmlpull.v1.XmlPullParserException;
-
import android.app.Activity;
import android.app.AlarmManager;
import android.app.DatePickerDialog;
@@ -46,6 +41,12 @@ import android.widget.Spinner;
import android.widget.TextView;
import android.widget.TimePicker;
+import com.cyanogenmod.setupwizard.R;
+import com.cyanogenmod.setupwizard.ui.SetupPageFragment;
+import com.cyanogenmod.setupwizard.ui.SetupWizardActivity;
+
+import org.xmlpull.v1.XmlPullParserException;
+
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
@@ -68,7 +69,7 @@ public class DateTimePage extends SetupPage {
private static final int HOURS_1 = 60 * 60000;
- public DateTimePage(Context context, SetupDataCallbacks callbacks) {
+ public DateTimePage(SetupWizardActivity context, SetupDataCallbacks callbacks) {
super(context, callbacks);
}