@@ -180,6 +180,8 @@ public void onTransitionResume(Transition transition) {
180
180
mRunnable = () -> {
181
181
toolbar .setVisibility (View .VISIBLE );
182
182
loadWallpaper (mUrl );
183
+ mRunnable = null ;
184
+ mHandler = null ;
183
185
};
184
186
mHandler = new Handler ();
185
187
mHandler .postDelayed (mRunnable , 700 );
@@ -286,7 +288,7 @@ public void onLoadingStarted(String imageUri, View view) {
286
288
@ Override
287
289
public void onLoadingFailed (String imageUri , View view , FailReason failReason ) {
288
290
super .onLoadingFailed (imageUri , view , failReason );
289
- int text = ColorHelper .getTitleTextColor (CandyBarWallpaperActivity . this , mColor );
291
+ int text = ColorHelper .getTitleTextColor (mColor );
290
292
OnWallpaperLoaded (text );
291
293
292
294
int color = ColorHelper .getAttributeColor (CandyBarWallpaperActivity .this , R .attr .main_background );
@@ -311,7 +313,7 @@ public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
311
313
CandyBarWallpaperActivity .this , R .attr .colorAccent );
312
314
int color = palette .getVibrantColor (accent );
313
315
mColor = color ;
314
- int text = ColorHelper .getTitleTextColor (CandyBarWallpaperActivity . this , color );
316
+ int text = ColorHelper .getTitleTextColor (color );
315
317
mFab .setBackgroundTintList (ColorHelper .getColorStateList (
316
318
android .R .attr .state_pressed ,
317
319
color , ColorHelper .getDarkerColor (color , 0.9f )));
0 commit comments