mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Suppress new nullness warnings when stub for View.getLayoutParams is added.
I am suppressing these warnings so that the stub file can be added and future usages will be checked correctly. As noted in https://developer.android.com/reference/android/view/View#getLayoutParams() this can be null before params are set. This was produced by running the TGP on <unknown commit>. More information: go/new-nullness-stubs-lsc Tested: Automated deflaking failed to skip failures: http://mondo/deflaker/run/ff55923b-d76d-4eba-86dc-1b3077362352 http://test/OCL:435678706:BASE:436509228:1647985874385:4fae6f0a Some test failures are present, but the CL author has decided to mail the change anyway PiperOrigin-RevId: 436951684
This commit is contained in:
parent
76928738f3
commit
ea2fbfd0a1
1 changed files with 2 additions and 0 deletions
|
|
@ -598,6 +598,8 @@ import java.util.List;
|
|||
return width <= defaultModeMinimumWidth || height <= defaultModeMinimumHeight;
|
||||
}
|
||||
|
||||
// dereference of possibly-null reference timeBarParams
|
||||
@SuppressWarnings("nullness:dereference.of.nullable")
|
||||
private void updateLayoutForSizeChange() {
|
||||
if (minimalControls != null) {
|
||||
minimalControls.setVisibility(isMinimalMode ? View.VISIBLE : View.INVISIBLE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue