Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Calendar
Commits
cfa4b5b7
Commit
cfa4b5b7
authored
14 years ago
by
Erik
Browse files
Options
Download
Email Patches
Plain Diff
Another fix to make edit not save if nothing changed
Change-Id: Ifd8d21dcae57084464c02ccbe83894894a2f4fd8
parent
97e9cb0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/com/android/calendar/event/EditEventView.java
src/com/android/calendar/event/EditEventView.java
+6
-0
No files found.
src/com/android/calendar/event/EditEventView.java
View file @
cfa4b5b7
...
...
@@ -641,6 +641,12 @@ public class EditEventView implements View.OnClickListener, DialogInterface.OnCa
mModel
.
mAllDay
=
mAllDayCheckBox
.
isChecked
();
mModel
.
mLocation
=
mLocationTextView
.
getText
().
toString
().
trim
();
mModel
.
mDescription
=
mDescriptionTextView
.
getText
().
toString
().
trim
();
if
(
TextUtils
.
isEmpty
(
mModel
.
mLocation
))
{
mModel
.
mLocation
=
null
;
}
if
(
TextUtils
.
isEmpty
(
mModel
.
mDescription
))
{
mModel
.
mDescription
=
null
;
}
int
status
=
EventInfoFragment
.
getResponseFromButtonId
(
mResponseRadioGroup
.
getCheckedRadioButtonId
());
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment