summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/timezonepicker/TimeZonePickerDialog.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/com/android/timezonepicker/TimeZonePickerDialog.java b/src/com/android/timezonepicker/TimeZonePickerDialog.java
index fca2bbc..4977be3 100644
--- a/src/com/android/timezonepicker/TimeZonePickerDialog.java
+++ b/src/com/android/timezonepicker/TimeZonePickerDialog.java
@@ -49,12 +49,10 @@ public class TimeZonePickerDialog extends DialogFragment implements
Bundle savedInstanceState) {
long timeMillis = 0;
String timeZone = null;
- if (savedInstanceState == null) {
- Bundle b = getArguments();
- if (b != null) {
- timeMillis = b.getLong(BUNDLE_START_TIME_MILLIS);
- timeZone = b.getString(BUNDLE_TIME_ZONE);
- }
+ Bundle b = getArguments();
+ if (b != null) {
+ timeMillis = b.getLong(BUNDLE_START_TIME_MILLIS);
+ timeZone = b.getString(BUNDLE_TIME_ZONE);
}
return new TimeZonePickerView(getActivity(), null, timeZone, timeMillis, this);
}