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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/eventfilter/EdgeSwipeEventFilter.java

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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
Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/eventfilter/EdgeSwipeEventFilter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/eventfilter/EdgeSwipeEventFilter.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/eventfilter/EdgeSwipeEventFilter.java
index 88de62df319ce7754f1c3c59a67a3ae8f111f87b..6b043ecd279da046d0d89930d50060e27c08baea 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/eventfilter/EdgeSwipeEventFilter.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/eventfilter/EdgeSwipeEventFilter.java
@@ -53,13 +53,13 @@ public class EdgeSwipeEventFilter extends EventFilter {
private final EdgeSwipeHandler mEdgeSwipeHandler;
private boolean mEdgeSwipeStarted;
- private boolean mInLongPress = false;
- private boolean mInDoubleTap = false;
+ private boolean mInLongPress;
+ private boolean mInDoubleTap;
private boolean mScrollStarted;
// This flag is used to for accumulating events when the motion at the beginning of a scroll
// can not be trusted and we need more events to make a better angle and speed estimate.
- private boolean mAccumulatingEvents = false;
+ private boolean mAccumulatingEvents;
private final ArrayList<MotionEvent> mAccumulatedEvents = new ArrayList<MotionEvent>();
private boolean mPropagateEventsToHostView;

Powered by Google App Engine
This is Rietveld 408576698