diff --git a/powerbell/build.properties b/powerbell/build.properties index 7cf1e06..796a519 100644 --- a/powerbell/build.properties +++ b/powerbell/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Tue Dec 23 21:02:16 HKT 2025 +#Tue Dec 23 16:04:47 GMT 2025 stageCount=28 libraryProject= baseVersion=15.14 publishVersion=15.14.27 -buildCount=0 +buildCount=2 baseBetaVersion=15.14.28 diff --git a/powerbell/src/main/java/cc/winboll/studio/powerbell/MainActivity.java b/powerbell/src/main/java/cc/winboll/studio/powerbell/MainActivity.java index d2d62e2..81d2b71 100644 --- a/powerbell/src/main/java/cc/winboll/studio/powerbell/MainActivity.java +++ b/powerbell/src/main/java/cc/winboll/studio/powerbell/MainActivity.java @@ -45,7 +45,7 @@ public class MainActivity extends WinBoLLActivity implements MainContentView.OnV // ======================== 静态常量(置顶统一,抽离魔法值)======================== public static final String TAG = "MainActivity"; - private static final int REQUEST_READ_MEDIA_IMAGES = 1001; + private static final int REQUEST_BACKGROUND_SETTINGS_ACTIVITY = 1001; private static final long DELAY_LOAD_NON_CRITICAL = 500L; public static final int MSG_RELOAD_APPCONFIG = 0; public static final int MSG_CURRENTVALUEBATTERY = 1; @@ -110,10 +110,7 @@ public class MainActivity extends WinBoLLActivity implements MainContentView.OnV protected void onResume() { super.onResume(); LogUtils.d(TAG, "onResume()"); - if (sGlobalHandler != null) { - sGlobalHandler.sendEmptyMessage(MSG_LOAD_BACKGROUND); - sGlobalHandler.sendEmptyMessage(MSG_UPDATE_SERVICE_SWITCH); - } + if (mADsBannerView != null) { mADsBannerView.resumeADs(this); } @@ -167,7 +164,7 @@ public class MainActivity extends WinBoLLActivity implements MainContentView.OnV super.onActivityResult(requestCode, resultCode, data); LogUtils.d(TAG, "onActivityResult() | requestCode=" + requestCode + " | resultCode=" + resultCode + " | data=" + data); mPermissionUtils.handlePermissionRequest(this, requestCode, resultCode, data); - if (requestCode == REQUEST_READ_MEDIA_IMAGES && sGlobalHandler != null) { + if (requestCode == REQUEST_BACKGROUND_SETTINGS_ACTIVITY && sGlobalHandler != null) { sGlobalHandler.sendEmptyMessage(MSG_LOAD_BACKGROUND); } } @@ -207,7 +204,7 @@ public class MainActivity extends WinBoLLActivity implements MainContentView.OnV startActivity(new Intent(this, ClearRecordActivity.class)); break; case R.id.action_changepicture: - startActivityForResult(new Intent(this, BackgroundSettingsActivity.class), REQUEST_READ_MEDIA_IMAGES); + startActivityForResult(new Intent(this, BackgroundSettingsActivity.class), REQUEST_BACKGROUND_SETTINGS_ACTIVITY); break; case R.id.action_unittestactivity: startActivity(new Intent(this, MainUnitTestActivity.class)); @@ -406,7 +403,7 @@ public class MainActivity extends WinBoLLActivity implements MainContentView.OnV } BackgroundBean currentBgBean = mBgSourceUtils.getCurrentBackgroundBean(); if (currentBgBean != null) { - mMainContentView.backgroundView.loadByBackgroundBean(currentBgBean); + mMainContentView.backgroundView.loadByBackgroundBean(currentBgBean, true); } else { mMainContentView.backgroundView.setBackgroundResource(R.drawable.default_background); }