@@ -10,8 +10,6 @@ import android.widget.ImageView; |
||
10 | 10 |
import android.widget.TextView; |
11 | 11 |
import android.widget.Toast; |
12 | 12 |
|
13 |
-import com.android.common.utils.LogHelper; |
|
14 |
- |
|
15 | 13 |
import java.util.ArrayList; |
16 | 14 |
|
17 | 15 |
import ai.pai.lensman.R; |
@@ -101,7 +99,6 @@ public class MainActivity extends BaseActivity implements MainContract.View { |
||
101 | 99 |
|
102 | 100 |
@Override |
103 | 101 |
public void updateSessionUploadViewAt(int position) { |
104 |
- LogHelper.d("czy","updateSessionUploadViewAt "+position); |
|
105 | 102 |
adapter.notifyItemChanged(position); |
106 | 103 |
} |
107 | 104 |
|
@@ -3,6 +3,7 @@ package ai.pai.lensman.splash; |
||
3 | 3 |
import android.content.Context; |
4 | 4 |
import android.content.Intent; |
5 | 5 |
import android.os.Handler; |
6 |
+import android.os.Looper; |
|
6 | 7 |
import android.text.TextUtils; |
7 | 8 |
|
8 | 9 |
import com.android.common.utils.NetworkUtil; |
@@ -13,9 +14,6 @@ import java.util.Date; |
||
13 | 14 |
import ai.pai.lensman.db.Preferences; |
14 | 15 |
import ai.pai.lensman.service.UpgradeService; |
15 | 16 |
|
16 |
-/** |
|
17 |
- * Created by chengzhenyu on 2016/8/14. |
|
18 |
- */ |
|
19 | 17 |
public class SplashPresenter implements SplashContract.Presenter { |
20 | 18 |
|
21 | 19 |
private Context context; |
@@ -26,7 +24,7 @@ public class SplashPresenter implements SplashContract.Presenter { |
||
26 | 24 |
public SplashPresenter(Context context, SplashContract.View view){ |
27 | 25 |
this.view = view; |
28 | 26 |
this.context = context; |
29 |
- mHandler = new Handler(); |
|
27 |
+ mHandler = new Handler(Looper.getMainLooper()); |
|
30 | 28 |
} |
31 | 29 |
|
32 | 30 |
@Override |
@@ -50,7 +48,7 @@ public class SplashPresenter implements SplashContract.Presenter { |
||
50 | 48 |
if(Preferences.getInstance().getLastRunDate().equals(curDate)){ |
51 | 49 |
return; |
52 | 50 |
} |
53 |
-// checkUpdate(); |
|
51 |
+ checkUpdate(); |
|
54 | 52 |
Preferences.getInstance().setLastRunDate(curDate); |
55 | 53 |
} |
56 | 54 |
|