[Sony Cross-Device General] pilger:
Hello guys,

I'm trying to do this on my Xperia SP running the latest CM12.1. The code isn't exactly the same, but it's close enough for me to adapt.

The problem is the phone is stuck in bootloop when I put the modded SystemUI.apk in place. Any ideas on why is that happening or even how can I find out what could be causing this?

The original method was:

.method public updateMediaMetaData(Z)V
.locals 11
.param p1, "metaDataChanged" # Z

.prologue
const/high16 v10, 0x3f800000 # 1.0f

const/4 v9, 0x0

const/4 v5, 0x1

const/4 v6, 0x0

.line 2339
iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

if-nez v7, :cond_1

.line 2456
:cond_0
:goto_0
return-void

.line 2348
:cond_1
const/4 v0, 0x0

.line 2351
.local v0, "backdropBitmap":Landroid/graphics/Bitmap;
iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mMediaMetadata:Landroid/media/MediaMetadata;

if-eqz v7, :cond_2

.line 2352
iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mMediaMetadata:Landroid/media/MediaMetadata;

const-string v8, "android.media.metadata.ART"

invoke-virtual {v7, v8}, Landroid/media/MediaMetadata;->getBitmap(Ljava/lang/String;)Landroid/graphics/Bitmap;

move-result-object v0

.line 2353
if-nez v0, :cond_2

.line 2354
iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mMediaMetadata:Landroid/media/MediaMetadata;

const-string v8, "android.media.metadata.ALBUM_ART"

invoke-virtual {v7, v8}, Landroid/media/MediaMetadata;->getBitmap(Ljava/lang/String;)Landroid/graphics/Bitmap;

move-result-object v0

.line 2359
:cond_2
iget v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mState:I

if-eqz v7, :cond_7

move v3, v5

.line 2360
.local v3, "keyguardVisible":Z
:goto_1
iget-boolean v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mVisualizerEnabled:Z

if-eqz v7, :cond_8

if-eqz v3, :cond_8

iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mMediaController:Landroid/media/session/MediaController;

if-eqz v7, :cond_8

move v4, v5

.line 2363
.local v4, "visualizerVisible":Z
:goto_2
if-nez v0, :cond_3

iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mMediaMetadata:Landroid/media/MediaMetadata;

if-nez v7, :cond_3

.line 2364
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardWallpaper:Landroid/graphics/Bitmap;

.line 2367
:cond_3
if-eqz v4, :cond_4

.line 2368
iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v7, v0}, Lcom/android/systemui/statusbar/BackDropView;->setBitmap(Landroid/graphics/Bitmap;)V

.line 2371
:cond_4
if-eqz v0, :cond_9

move v2, v5

.line 2372
.local v2, "hasBackdrop":Z
:goto_3
iput-boolean v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardShowingMedia:Z

.line 2373
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindowManager:Lcom/android/systemui/statusbar/phone/StatusBarWindowManager;

if-eqz v5, :cond_5

.line 2374
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindowManager:Lcom/android/systemui/statusbar/phone/StatusBarWindowManager;

iget-boolean v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardShowingMedia:Z

invoke-virtual {v5, v7}, Lcom/android/systemui/statusbar/phone/StatusBarWindowManager;->setShowingMedia(Z)V

.line 2377
:cond_5
if-nez v2, :cond_a

.line 2427
:cond_6
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->getVisibility()I

move-result v5

const/16 v6, 0x8

if-eq v5, v6, :cond_0

.line 2431
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v5

invoke-virtual {v5, v9}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropInterpolator:Landroid/view/animation/Interpolator;

invoke-virtual {v5, v6}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v5

const-wide/16 v6, 0x12c

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

const-wide/16 v6, 0x0

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

new-instance v6, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$30;

invoke-direct {v6, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$30;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

invoke-virtual {v5, v6}, Landroid/view/ViewPropertyAnimator;->withEndAction(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;

.line 2445
iget-boolean v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardFadingAway:Z

if-eqz v5, :cond_0

.line 2446
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-wide v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardFadingAwayDuration:J

const-wide/16 v8, 0x2

div-long/2addr v6, v8

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-wide v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardFadingAwayDelay:J

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mLinearInterpolator:Landroid/view/animation/Interpolator;

invoke-virtual {v5, v6}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v5

invoke-virtual {v5}, Landroid/view/ViewPropertyAnimator;->start()V

goto/16 :goto_0

.end local v2 # "hasBackdrop":Z
.end local v3 # "keyguardVisible":Z
.end local v4 # "visualizerVisible":Z
:cond_7
move v3, v6

.line 2359
goto :goto_1

.restart local v3 # "keyguardVisible":Z
:cond_8
move v4, v6

.line 2360
goto :goto_2

.restart local v4 # "visualizerVisible":Z
:cond_9
move v2, v6

.line 2371
goto :goto_3

.line 2377
.restart local v2 # "hasBackdrop":Z
:cond_a
if-eqz v3, :cond_6

.line 2379
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->getVisibility()I

move-result v5

if-eqz v5, :cond_b

.line 2380
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/BackDropView;->setVisibility(I)V

.line 2381
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v5

invoke-virtual {v5, v10}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

.line 2382
const/4 p1, 0x1

.line 2387
:cond_b
if-eqz p1, :cond_0

.line 2388
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropBack:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

move-result-object v5

if-eqz v5, :cond_e

.line 2389
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropBack:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

move-result-object v1

.line 2390
.local v1, "drawable":Landroid/graphics/drawable/Drawable;
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

.line 2391
iget-boolean v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mScrimSrcModeEnabled:Z

if-eqz v5, :cond_c

.line 2392
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

move-result-object v5

invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

move-result-object v5

iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSrcOverXferMode:Landroid/graphics/PorterDuffXfermode;

invoke-virtual {v5, v7}, Landroid/graphics/drawable/Drawable;->setXfermode(Landroid/graphics/Xfermode;)V

.line 2394
:cond_c
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5, v10}, Landroid/widget/ImageView;->setAlpha(F)V

.line 2395
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setVisibility(I)V

.line 2406
.end local v1 # "drawable":Landroid/graphics/drawable/Drawable;
:goto_4
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropBack:Landroid/widget/ImageView;

invoke-virtual {v5, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

.line 2408
iget-boolean v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mScrimSrcModeEnabled:Z

if-eqz v5, :cond_d

.line 2409
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropBack:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

move-result-object v5

invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

move-result-object v5

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSrcXferMode:Landroid/graphics/PorterDuffXfermode;

invoke-virtual {v5, v6}, Landroid/graphics/drawable/Drawable;->setXfermode(Landroid/graphics/Xfermode;)V

.line 2412
:cond_d
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getVisibility()I

move-result v5

if-nez v5, :cond_0

.line 2419
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v5

const-wide/16 v6, 0xfa

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

invoke-virtual {v5, v9}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mHideBackdropFront:Ljava/lang/Runnable;

invoke-virtual {v5, v6}, Landroid/view/ViewPropertyAnimator;->withEndAction(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;

goto/16 :goto_0

.line 2397
:cond_e
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

const/4 v6, 0x4

invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setVisibility(I)V

goto :goto_4
.end method

And I changed it to this:

.method public updateMediaMetaData(Z)V
.locals 11
.param p1, "metaDataChanged" # Z

.prologue
const/high16 v10, 0x3f800000 # 1.0f

const/4 v9, 0x0

const/4 v5, 0x1

const/4 v6, 0x0

.line 2339
iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

[COLOR="DarkGreen"][B][I] if-nez v7, :cond_2[/I][/B][/COLOR]

.line 2456
:cond_0
:goto_0
return-void

[COLOR="Red"][I][B]removed ":cond_1" from here[/B][/I][/COLOR]

.line 2359
:cond_2
iget v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mState:I

if-eqz v7, :cond_7

move v3, v5

.line 2360
.local v3, "keyguardVisible":Z
:goto_1
iget-boolean v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mVisualizerEnabled:Z

if-eqz v7, :cond_8

if-eqz v3, :cond_8

iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mMediaController:Landroid/media/session/MediaController;

if-eqz v7, :cond_8

move v4, v5

.line 2363
.local v4, "visualizerVisible":Z
:goto_2
if-nez v0, :cond_3

iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mMediaMetadata:Landroid/media/MediaMetadata;

if-nez v7, :cond_3

.line 2364
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardWallpaper:Landroid/graphics/Bitmap;

.line 2367
:cond_3
if-eqz v4, :cond_4

.line 2368
iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v7, v0}, Lcom/android/systemui/statusbar/BackDropView;->setBitmap(Landroid/graphics/Bitmap;)V

.line 2371
:cond_4
if-eqz v0, :cond_9

move v2, v5

.line 2372
.local v2, "hasBackdrop":Z
:goto_3
iput-boolean v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardShowingMedia:Z

.line 2373
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindowManager:Lcom/android/systemui/statusbar/phone/StatusBarWindowManager;

if-eqz v5, :cond_5

.line 2374
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindowManager:Lcom/android/systemui/statusbar/phone/StatusBarWindowManager;

iget-boolean v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardShowingMedia:Z

invoke-virtual {v5, v7}, Lcom/android/systemui/statusbar/phone/StatusBarWindowManager;->setShowingMedia(Z)V

.line 2377
:cond_5
if-nez v2, :cond_a

.line 2427
:cond_6
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->getVisibility()I

move-result v5

const/16 v6, 0x8

if-eq v5, v6, :cond_0

.line 2431
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v5

invoke-virtual {v5, v9}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropInterpolator:Landroid/view/animation/Interpolator;

invoke-virtual {v5, v6}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v5

const-wide/16 v6, 0x12c

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

const-wide/16 v6, 0x0

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

new-instance v6, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$30;

invoke-direct {v6, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$30;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

invoke-virtual {v5, v6}, Landroid/view/ViewPropertyAnimator;->withEndAction(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;

.line 2445
iget-boolean v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardFadingAway:Z

if-eqz v5, :cond_0

.line 2446
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-wide v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardFadingAwayDuration:J

const-wide/16 v8, 0x2

div-long/2addr v6, v8

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-wide v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardFadingAwayDelay:J

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mLinearInterpolator:Landroid/view/animation/Interpolator;

invoke-virtual {v5, v6}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v5

invoke-virtual {v5}, Landroid/view/ViewPropertyAnimator;->start()V

goto/16 :goto_0

.end local v2 # "hasBackdrop":Z
.end local v3 # "keyguardVisible":Z
.end local v4 # "visualizerVisible":Z
:cond_7
move v3, v6

.line 2359
goto :goto_1

.restart local v3 # "keyguardVisible":Z
:cond_8
move v4, v6

.line 2360
goto :goto_2

.restart local v4 # "visualizerVisible":Z
:cond_9
move v2, v6

.line 2371
goto :goto_3

.line 2377
.restart local v2 # "hasBackdrop":Z
:cond_a
if-eqz v3, :cond_6

.line 2379
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->getVisibility()I

move-result v5

if-eqz v5, :cond_b

.line 2380
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/BackDropView;->setVisibility(I)V

.line 2381
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdrop:Lcom/android/systemui/statusbar/BackDropView;

invoke-virtual {v5}, Lcom/android/systemui/statusbar/BackDropView;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v5

invoke-virtual {v5, v10}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

.line 2382
const/4 p1, 0x1

.line 2387
:cond_b
if-eqz p1, :cond_0

.line 2388
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropBack:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

move-result-object v5

if-eqz v5, :cond_e

.line 2389
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropBack:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

move-result-object v1

.line 2390
.local v1, "drawable":Landroid/graphics/drawable/Drawable;
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

.line 2391
iget-boolean v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mScrimSrcModeEnabled:Z

if-eqz v5, :cond_c

.line 2392
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

move-result-object v5

invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

move-result-object v5

iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSrcOverXferMode:Landroid/graphics/PorterDuffXfermode;

invoke-virtual {v5, v7}, Landroid/graphics/drawable/Drawable;->setXfermode(Landroid/graphics/Xfermode;)V

.line 2394
:cond_c
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5, v10}, Landroid/widget/ImageView;->setAlpha(F)V

.line 2395
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setVisibility(I)V

.line 2406
.end local v1 # "drawable":Landroid/graphics/drawable/Drawable;
:goto_4
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropBack:Landroid/widget/ImageView;

invoke-virtual {v5, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

.line 2408
iget-boolean v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mScrimSrcModeEnabled:Z

if-eqz v5, :cond_d

.line 2409
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropBack:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

move-result-object v5

invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

move-result-object v5

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSrcXferMode:Landroid/graphics/PorterDuffXfermode;

invoke-virtual {v5, v6}, Landroid/graphics/drawable/Drawable;->setXfermode(Landroid/graphics/Xfermode;)V

.line 2412
:cond_d
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->getVisibility()I

move-result v5

if-nez v5, :cond_0

.line 2419
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

invoke-virtual {v5}, Landroid/widget/ImageView;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v5

const-wide/16 v6, 0xfa

invoke-virtual {v5, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v5

invoke-virtual {v5, v9}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

move-result-object v5

iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mHideBackdropFront:Ljava/lang/Runnable;

invoke-virtual {v5, v6}, Landroid/view/ViewPropertyAnimator;->withEndAction(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;

goto/16 :goto_0

.line 2397
:cond_e
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBackdropFront:Landroid/widget/ImageView;

const/4 v6, 0x4

invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setVisibility(I)V

goto :goto_4
.end method