BoD/android-switch-backport

Lint warnings

smarek opened this issue · 1 comments

Hi,

I've just cloned master to see if it could work as I need, and I got several warnings, so if you could please resolve why it is done this way.

  1. Not needed @SuppressWarnings in Switch.java:99
99:    @SuppressWarnings("hiding")
100:    private final Rect mTempRect = new Rect();
  1. Unused boolean private member mSendClickAccessibilityEvent in TwoStatePreference.java:49
49:    private boolean mSendClickAccessibilityEvent;
...
73:    mSendClickAccessibilityEvent = true;

as far as this member is private, and only one assignment is done in onClick() and no further use, it is probably just leftover

BoD commented

I just pushed a fix for these (and other) warnings.