Commit 4b342aa3499697ef0c6c1a63d1029efa9df5ed7f

Authored by Penley
1 parent 25fc9938

支持包名修改

... ... @@ -55,7 +55,6 @@ import com.gimi.common.cinema.model.LocalMovieMessage;
55 55 import com.gimi.common.cinema.utils.AuthUtils;
56 56 import com.gimi.common.cinema.utils.LeeImageLoader;
57 57 import com.gimi.common.cinema.utils.M1905Utils;
58   -import com.gimi.common.cinema.utils.SambaFileCharge;
59 58 import com.gimi.common.cinema.utils.ScreenUtils;
60 59 import com.gimi.common.cinema.utils.SystemUtils;
61 60 import com.qnbar.smc.model.Light;
... ... @@ -99,8 +98,6 @@ import java.util.Locale;
99 98 public class MainActivity extends BaseActivity implements IMainView, EventListener<String> {
100 99
101 100 private static final String TAG = "MainActivity";
102   - private static final long NO_KEY_EVENT_MSEC = 30 * 1000;
103   -
104 101 private Context context;
105 102
106 103 private ImageView controlQrCodeIv;
... ... @@ -354,10 +351,6 @@ public class MainActivity extends BaseActivity implements IMainView, EventListen
354 351 }
355 352 }
356 353 needStartScreenSaver = true;
357   - if (handler != null) {
358   - handler.removeCallbacks(startAdsRunnable);
359   - handler.postDelayed(startAdsRunnable, 30 * 1000);
360   - }
361 354 if (HAS_SYSTEM_FEATURE_BLUETOOTH_LE) {
362 355 IntentFilter intentFilter = new IntentFilter();
363 356 intentFilter.addAction(BLEBroadcastReceiver.ACTION_BLE_ERROR);
... ... @@ -402,11 +395,6 @@ public class MainActivity extends BaseActivity implements IMainView, EventListen
402 395
403 396 @Override
404 397 public boolean onGenericMotionEvent(MotionEvent event) {
405   - lastKeyDownTime = System.currentTimeMillis();
406   - if (handler != null) {
407   - handler.removeCallbacks(startAdsRunnable);
408   - handler.postDelayed(startAdsRunnable, NO_KEY_EVENT_MSEC);
409   - }
410 398 return super.onGenericMotionEvent(event);
411 399 }
412 400
... ... @@ -614,35 +602,6 @@ public class MainActivity extends BaseActivity implements IMainView, EventListen
614 602 presenter.jumpToSearch();
615 603 }
616 604
617   - private Runnable startAdsRunnable = new Runnable() {
618   - @Override
619   - public void run() {
620   - if (!Constant.gimiAuth) {
621   - return;
622   - }
623   - if (true) {
624   - return;
625   - }
626   - if (AuthUtils.isFinish(context)) {
627   - return;
628   - }
629   - handler.postDelayed(this, NO_KEY_EVENT_MSEC);
630   - if ((System.currentTimeMillis() - lastKeyDownTime) > NO_KEY_EVENT_MSEC) {
631   - if (needStartScreenSaver) {
632   - if (SambaFileCharge.fileExist(videoAds) && Constant.messageRun) {
633   - needStartScreenSaver = false;
634   - Intent intent = new Intent(context, SimpleAdsPlayer2.class);
635   - intent.putExtra("ads_path", videoAds);
636   - startActivity(intent);
637   - presenter.getVideoAdsPath(context);
638   - } else {
639   - presenter.getVideoAdsPath(context);
640   - }
641   - }
642   - }
643   - }
644   - };
645   -
646 605 @Override
647 606 protected void onDestroy() {
648 607 super.onDestroy();
... ...
... ... @@ -43,13 +43,11 @@
43 43 android:layout_height="wrap_content"
44 44 android:orientation="horizontal">
45 45
46   - <com.xgimi.gimicinema.view.roundedimageview.RoundedImageView
  46 + <ImageView
47 47 android:id="@+id/moviePoster_iv"
48 48 android:layout_width="200dp"
49 49 android:layout_height="270dp"
50 50 android:scaleType="fitXY"
51   - xmlns:makeramen="http://schemas.android.com/apk/res/com.xgimi.gimicinema"
52   - makeramen:riv_corner_radius="5dp"
53 51 android:focusable="false"
54 52 android:focusableInTouchMode="false"
55 53 tools:background="@drawable/ic_movie_default"
... ...
... ... @@ -13,9 +13,7 @@
13 13 makeramen:riv_corner_radius_top_right="10dip"
14 14 makeramen:riv_border_width="1dip"
15 15 makeramen:riv_border_color="#ffffff"-->
16   - <com.xgimi.gimicinema.view.roundedimageview.RoundedImageView
17   - xmlns:makeramen="http://schemas.android.com/apk/res/com.xgimi.gimicinema"
18   - makeramen:riv_corner_radius="5dip"
  16 + <ImageView
19 17 android:layout_width="248dp"
20 18 android:layout_height="380dp"
21 19 android:focusable="false"
... ...
... ... @@ -13,9 +13,7 @@
13 13 makeramen:riv_corner_radius_top_right="10dip"
14 14 makeramen:riv_border_width="1dip"
15 15 makeramen:riv_border_color="#ffffff"-->
16   - <com.xgimi.gimicinema.view.roundedimageview.RoundedImageView
17   - xmlns:makeramen="http://schemas.android.com/apk/res/com.xgimi.gimicinema"
18   - makeramen:riv_corner_radius="5dip"
  16 + <ImageView
19 17 android:layout_width="@dimen/detail_item_width"
20 18 android:layout_height="@dimen/detail_item_height"
21 19 android:focusable="false"
... ...
... ... @@ -13,13 +13,11 @@
13 13 makeramen:riv_corner_radius_top_right="10dp"
14 14 makeramen:riv_border_width="1dp"
15 15 makeramen:riv_border_color="#ffffff"-->
16   - <com.xgimi.gimicinema.view.roundedimageview.RoundedImageView
  16 + <ImageView
17 17 android:id="@+id/imageView"
18 18 android:layout_width="@dimen/i_recommend_search_w"
19 19 android:layout_height="@dimen/i_recommend_search_h"
20 20 android:scaleType="fitXY"
21   - xmlns:makeramen="http://schemas.android.com/apk/res/com.xgimi.gimicinema"
22   - makeramen:riv_corner_radius="5dp"
23 21 android:focusable="false"
24 22 android:adjustViewBounds="true"
25 23 android:focusableInTouchMode="false"
... ...
Please register or login to post a comment