Commit 02f16167 authored by wanglei's avatar wanglei

Merge branch 'master' of gitlab.huolea.com:koko/swiftcleanerphonehelper

parents 1220ff27 0d8f5122
...@@ -361,6 +361,7 @@ public class CleanJunkActivity extends AppCompatActivity { ...@@ -361,6 +361,7 @@ public class CleanJunkActivity extends AppCompatActivity {
selectedSize = 0; selectedSize = 0;
updateButtonStatus(); updateButtonStatus();
initAnimation(formatFileSize(selectedSize)); initAnimation(formatFileSize(selectedSize));
} }
...@@ -372,17 +373,36 @@ public class CleanJunkActivity extends AppCompatActivity { ...@@ -372,17 +373,36 @@ public class CleanJunkActivity extends AppCompatActivity {
} }
private void initAnimation(String str) { private void initAnimation(String str) {
binding.clRadarview.setVisibility(View.VISIBLE); binding.clRadarview.setVisibility(View.VISIBLE);
binding.clLayout.setVisibility(View.GONE); binding.clLayout.setVisibility(View.GONE);
binding.radarview.setSearching(true); binding.radarview.setSearching(true);
handler = new Handler(); handler = new Handler();
Intent intent = new Intent(this, EndCleanJunkActivity.class); Intent intent = new Intent(this, EndCleanJunkActivity.class);
handler.postDelayed(() -> { AdmobHelper.INSTANCE.showAppOpenAd(this,
binding.radarview.setSearching(false); () -> {
intent.putExtra("cleanstr", str); binding.radarview.setSearching(false);
startActivity(intent); intent.putExtra("cleanstr", str);
finish(); startActivity(intent);
}, 3000); finish();
return null;
},
() -> {
return null;
},
() -> {
binding.radarview.setSearching(false);
intent.putExtra("cleanstr", str);
startActivity(intent);
finish();
return null;
}
);
} }
@Override @Override
......
...@@ -267,12 +267,33 @@ public class LargeFileActivity extends AppCompatActivity { ...@@ -267,12 +267,33 @@ public class LargeFileActivity extends AppCompatActivity {
binding.radarview.setSearching(true); binding.radarview.setSearching(true);
handler = new Handler(); handler = new Handler();
Intent intent = new Intent(this, EndCleanJunkActivity.class); Intent intent = new Intent(this, EndCleanJunkActivity.class);
handler.postDelayed(() -> { AdmobHelper.INSTANCE.showAppOpenAd(this,
binding.radarview.setSearching(false); () -> {
intent.putExtra("cleanstr", str); binding.radarview.setSearching(false);
startActivity(intent); intent.putExtra("cleanstr", str);
finish(); startActivity(intent);
}, 3000); finish();
return null;
},
() -> {
return null;
},
() -> {
binding.radarview.setSearching(false);
intent.putExtra("cleanstr", str);
startActivity(intent);
finish();
return null;
}
);
// handler.postDelayed(() -> {
// binding.radarview.setSearching(false);
// intent.putExtra("cleanstr", str);
// startActivity(intent);
// finish();
// }, 3000);
} }
private void initBar() { private void initBar() {
......
...@@ -150,12 +150,33 @@ public class ScreenShotActivity extends AppCompatActivity { ...@@ -150,12 +150,33 @@ public class ScreenShotActivity extends AppCompatActivity {
handler = new Handler(Looper.getMainLooper()); handler = new Handler(Looper.getMainLooper());
Intent intent = new Intent(this, EndCleanJunkActivity.class); Intent intent = new Intent(this, EndCleanJunkActivity.class);
handler.postDelayed(() -> { AdmobHelper.INSTANCE.showAppOpenAd(this,
binding.radarview.setSearching(false); () -> {
intent.putExtra("cleanstr", cleanSize); binding.radarview.setSearching(false);
startActivity(intent); intent.putExtra("cleanstr", cleanSize);
finish(); startActivity(intent);
}, 3000); finish();
return null;
},
() -> {
return null;
},
() -> {
binding.radarview.setSearching(false);
intent.putExtra("cleanstr", cleanSize);
startActivity(intent);
finish();
return null;
}
);
// handler.postDelayed(() -> {
// binding.radarview.setSearching(false);
// intent.putExtra("cleanstr", cleanSize);
// startActivity(intent);
// finish();
// }, 3000);
} }
private String formatFileSize(long size) { private String formatFileSize(long size) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment