Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: ui/android/java/src/org/chromium/ui/picker/InputDialogContainer.java

Issue 744453002: Fix a bunch of Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsBraces to info Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/android/java/src/org/chromium/ui/picker/DateTimeSuggestion.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/picker/InputDialogContainer.java
diff --git a/ui/android/java/src/org/chromium/ui/picker/InputDialogContainer.java b/ui/android/java/src/org/chromium/ui/picker/InputDialogContainer.java
index 48304d546fab00e1dfd29b091c01fa5568c456bd..9646e5db2091d4d4930dfd2177eeb617527b89ef 100644
--- a/ui/android/java/src/org/chromium/ui/picker/InputDialogContainer.java
+++ b/ui/android/java/src/org/chromium/ui/picker/InputDialogContainer.java
@@ -112,8 +112,8 @@ public class InputDialogContainer {
cal.get(Calendar.HOUR_OF_DAY),
cal.get(Calendar.MINUTE),
0, 0, 0, min, max, step);
- } else if (dialogType == sTextInputTypeDateTime ||
- dialogType == sTextInputTypeDateTimeLocal) {
+ } else if (dialogType == sTextInputTypeDateTime
+ || dialogType == sTextInputTypeDateTimeLocal) {
showPickerDialog(dialogType,
cal.get(Calendar.YEAR),
cal.get(Calendar.MONTH),
@@ -159,8 +159,8 @@ public class InputDialogContainer {
int dialogTitleId = R.string.date_picker_dialog_title;
if (dialogType == sTextInputTypeTime) {
dialogTitleId = R.string.time_picker_dialog_title;
- } else if (dialogType == sTextInputTypeDateTime ||
- dialogType == sTextInputTypeDateTimeLocal) {
+ } else if (dialogType == sTextInputTypeDateTime
+ || dialogType == sTextInputTypeDateTimeLocal) {
dialogTitleId = R.string.date_time_picker_dialog_title;
} else if (dialogType == sTextInputTypeMonth) {
dialogTitleId = R.string.month_picker_dialog_title;
@@ -232,8 +232,8 @@ public class InputDialogContainer {
(int) min, (int) max, stepTime,
DateFormat.is24HourFormat(mContext),
new FullTimeListener(dialogType));
- } else if (dialogType == sTextInputTypeDateTime ||
- dialogType == sTextInputTypeDateTimeLocal) {
+ } else if (dialogType == sTextInputTypeDateTime
+ || dialogType == sTextInputTypeDateTimeLocal) {
mDialog = new DateTimePickerDialog(mContext,
new DateTimeListener(dialogType),
year, month, monthDay,
@@ -363,10 +363,10 @@ public class InputDialogContainer {
mInputActionDelegate.replaceDateTime(
WeekPicker.createDateFromWeek(year, week).getTimeInMillis());
} else if (dialogType == sTextInputTypeTime) {
- mInputActionDelegate.replaceDateTime(TimeUnit.HOURS.toMillis(hourOfDay) +
- TimeUnit.MINUTES.toMillis(minute) +
- TimeUnit.SECONDS.toMillis(second) +
- millis);
+ mInputActionDelegate.replaceDateTime(TimeUnit.HOURS.toMillis(hourOfDay)
+ + TimeUnit.MINUTES.toMillis(minute)
+ + TimeUnit.SECONDS.toMillis(second)
+ + millis);
} else {
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
cal.clear();
« no previous file with comments | « ui/android/java/src/org/chromium/ui/picker/DateTimeSuggestion.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698