Skip to content

Commit

Permalink
Fix lint errors to prepare for building Android files in Google (flut…
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetf authored Jun 1, 2018
1 parent bc79499 commit d7e3f2d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public void onPause() {
Application app = (Application) activity.getApplicationContext();
if (app instanceof FlutterApplication) {
FlutterApplication flutterApp = (FlutterApplication) app;
if (this.equals(flutterApp.getCurrentActivity())) {
if (activity.equals(flutterApp.getCurrentActivity())) {
Log.i(TAG, "onPause setting current activity to null");
flutterApp.setCurrentActivity(null);
}
Expand Down Expand Up @@ -251,7 +251,7 @@ public void onDestroy() {
Application app = (Application) activity.getApplicationContext();
if (app instanceof FlutterApplication) {
FlutterApplication flutterApp = (FlutterApplication) app;
if (this.equals(flutterApp.getCurrentActivity())) {
if (activity.equals(flutterApp.getCurrentActivity())) {
Log.i(TAG, "onDestroy setting current activity to null");
flutterApp.setCurrentActivity(null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public Object decodeEnvelope(ByteBuffer envelope) {
return result;
}
}
// Falls through intentionally.
case 1: {
final Object code = messageCodec.readValue(envelope);
final Object message = messageCodec.readValue(envelope);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public boolean commitText(CharSequence text, int newCursorPosition) {

@Override
public boolean deleteSurroundingText(int beforeLength, int afterLength) {
if (Selection.getSelectionStart(mEditable) == -1 ||
Selection.getSelectionStart(mEditable) == -1)
if (Selection.getSelectionStart(mEditable) == -1)
return true;

boolean result = super.deleteSurroundingText(beforeLength, afterLength);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ public AccessibilityNodeInfo findFocus(int focus) {
if (mInputFocusedObject != null)
return createAccessibilityNodeInfo(mInputFocusedObject.id);
}
// Fall through to check FOCUS_ACCESSIBILITY
case AccessibilityNodeInfo.FOCUS_ACCESSIBILITY: {
if (mA11yFocusedObject != null)
return createAccessibilityNodeInfo(mA11yFocusedObject.id);
Expand Down

0 comments on commit d7e3f2d

Please sign in to comment.