Skip to content

Commit

Permalink
Reversed due time change
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Kalderstam <[email protected]>
  • Loading branch information
spacecowboy committed Nov 6, 2013
1 parent 441bfa7 commit 271bf99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion NoNonsenseNotes/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
package="com.nononsenseapps.notepad"
android:installLocation="internalOnly"
android:versionCode="103"
android:versionName="5.1" >
android:versionName="5.1-withduetime" >

<uses-sdk
android:minSdkVersion="14"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,10 @@ public void onDateSet(final long time) {
mTask.due = localTime.getTimeInMillis();
setDueText();

// Dont ask for time for due date
// final TimePickerDialogFragment picker = getTimePickerFragment();
// picker.setListener(this);
// picker.show(getFragmentManager(), "time");
// and ask for time
final TimePickerDialogFragment picker = getTimePickerFragment();
picker.setListener(this);
picker.show(getFragmentManager(), "time");
}

// @Override
Expand All @@ -486,7 +486,7 @@ private void setDueText() {
}
else {
// Due date
dueDateBox.setText(TimeFormatter.getLocalDateOnlyStringLong(
dueDateBox.setText(TimeFormatter.getLocalDateStringLong(
getActivity(), mTask.due));
}
}
Expand Down
6 changes: 3 additions & 3 deletions NoNonsenseNotes/src/com/nononsenseapps/ui/DateView.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ public class DateView extends TextView {
public DateView(Context context) {
super(context);
this.mContext = context;
mDateFormatter = TimeFormatter.getLocalFormatterShortDateOnly(context);
mDateFormatter = TimeFormatter.getLocalFormatterShort(context);
}

@SuppressLint("SimpleDateFormat") public DateView(Context context, AttributeSet attrs) {
super(context, attrs);
this.mContext = context;
try {
mDateFormatter = TimeFormatter.getLocalFormatterShortDateOnly(context);
mDateFormatter = TimeFormatter.getLocalFormatterShort(context);
} catch(Exception e) {
// Just to function in view
mDateFormatter = new SimpleDateFormat();
Expand All @@ -69,7 +69,7 @@ public DateView(Context context) {
public DateView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
this.mContext = context;
mDateFormatter = TimeFormatter.getLocalFormatterShortDateOnly(context);
mDateFormatter = TimeFormatter.getLocalFormatterShort(context);
}

public void setTimeText(final long time) {
Expand Down

0 comments on commit 271bf99

Please sign in to comment.