File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/SystemUI/src/com/android/systemui/statusbar/phone Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1376,14 +1376,20 @@ public void hideCling() {
13761376 }
13771377
13781378 public void showCling () {
1379+ // lazily inflate this to accommodate orientation change
1380+ final ViewStub stub = (ViewStub ) mStatusBarWindow .findViewById (R .id .status_bar_cling_stub );
1381+ if (stub == null ) {
1382+ mClingShown = true ;
1383+ return ; // no clings on this device
1384+ }
1385+
13791386 mSuppressStatusBarDrags = true ;
13801387
13811388 mHandler .postDelayed (new Runnable () {
13821389 @ Override
13831390 public void run () {
1384- // lazily inflate this to accommodate orientation change
1385- ViewStub stub = (ViewStub ) mStatusBarWindow .findViewById (R .id .status_bar_cling_stub );
13861391 mCling = (ViewGroup ) stub .inflate ();
1392+
13871393 mCling .setOnTouchListener (new View .OnTouchListener () {
13881394 @ Override
13891395 public boolean onTouch (View v , MotionEvent event ) {
You can’t perform that action at this time.
0 commit comments