mirror of
https://github.com/samsonjs/media.git
synced 2026-04-10 12:05:47 +00:00
Fix lint errors when building release
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154201059
This commit is contained in:
parent
b88deaa1ca
commit
9c2b0f6de2
1 changed files with 10 additions and 4 deletions
|
|
@ -186,9 +186,8 @@ public class DefaultTimeBar extends View implements TimeBar {
|
|||
keyTimeIncrement = C.TIME_UNSET;
|
||||
keyCountIncrement = DEFAULT_INCREMENT_COUNT;
|
||||
setFocusable(true);
|
||||
if (Util.SDK_INT >= 16
|
||||
&& getImportantForAccessibility() == View.IMPORTANT_FOR_ACCESSIBILITY_AUTO) {
|
||||
setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
|
||||
if (Util.SDK_INT >= 16) {
|
||||
maybeSetImportantForAccessibilityV16();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -372,7 +371,7 @@ public class DefaultTimeBar extends View implements TimeBar {
|
|||
event.setClassName(DefaultTimeBar.class.getName());
|
||||
}
|
||||
|
||||
@TargetApi(14)
|
||||
@TargetApi(21)
|
||||
@Override
|
||||
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
|
||||
super.onInitializeAccessibilityNodeInfo(info);
|
||||
|
|
@ -416,6 +415,13 @@ public class DefaultTimeBar extends View implements TimeBar {
|
|||
|
||||
// Internal methods.
|
||||
|
||||
@TargetApi(16)
|
||||
private void maybeSetImportantForAccessibilityV16() {
|
||||
if (getImportantForAccessibility() == View.IMPORTANT_FOR_ACCESSIBILITY_AUTO) {
|
||||
setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
|
||||
}
|
||||
}
|
||||
|
||||
private void startScrubbing() {
|
||||
scrubbing = true;
|
||||
updateScrubberState();
|
||||
|
|
|
|||
Loading…
Reference in a new issue