@Override
 public void showAndResumeDrawTask(Long position) {
   mDanmakuVisibile = true;
   if (handler == null) {
     return;
   }
   handler.showDanmakus(position);
 }
Ejemplo n.º 2
0
 public DrawHandler(Looper looper, IDanmakuViewController view, boolean danmakuVisibile) {
   super(looper);
   mUpdateInNewThread = (Runtime.getRuntime().availableProcessors() > 3);
   mIdleSleep = !DeviceUtils.isProblemBoxDevice();
   bindView(view);
   if (danmakuVisibile) {
     showDanmakus(null);
   } else {
     hideDanmakus(false);
   }
   mDanmakusVisible = danmakuVisibile;
 }
Ejemplo n.º 3
0
 public DrawHandler(Looper looper, IDanmakuView view, boolean danmakuVisibile) {
   super(looper);
   if (timer == null) {
     timer = new DanmakuTimer();
   }
   if (danmakuVisibile) {
     showDanmakus(null);
   } else {
     hideDanmakus(false);
   }
   mDanmakusVisible = danmakuVisibile;
   bindView(view);
 }