启动页问题修改 1

This commit is contained in:
老皮
2024-09-19 13:28:39 +08:00
parent 54eb9ea099
commit e447824ea1
14 changed files with 128 additions and 18 deletions

View File

@@ -228,6 +228,8 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
getWindow().requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS);
getWindow().setSharedElementEnterTransition(new FullAdToBannerTransition(1, 0.4f, new DecelerateInterpolator()));
long startTime = System.currentTimeMillis();
Log.d("AppStart MainActivity", "App start time: " + startTime);
}
@Override
@@ -312,7 +314,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
}
});
} else if (getIntent().getStringExtra("type") != null && getIntent().getStringExtra("type").equals("2")) {
//跳转消息列表
//TODO 跳转消息列表
if (mViewPager != null) {
mViewPager.setCurrentItem(2);
mTabButtonGroup.setCurPosition(2);
@@ -1044,6 +1046,11 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
@Override
protected void onResume() {
super.onResume();
long startTime = System.currentTimeMillis();
Log.d("AppStart MainActivity onResume", "App start time: " + startTime);
if (binder != null) {
if (binder.isDownloadOK()) {
binder.install();
@@ -1126,7 +1133,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
if (code == 0 && info.length > 0) {
ArrayList<String> list = new ArrayList<String>(Arrays.asList(info));
String url1;
// TODO 优化这个循环
for (int j = 0; j < list.size(); j++) {
String[] arr = list.get(j).split("/");