Merge "Avoid an NPE while checking view location on screen." into cw-f-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5e933c1e43
@@ -23859,7 +23859,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
* on the screen.
|
||||
*/
|
||||
private boolean shouldDrawRoundScrollbar() {
|
||||
if (!mResources.getConfiguration().isScreenRound()) {
|
||||
if (!mResources.getConfiguration().isScreenRound() || mAttachInfo == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user