[Android General] Abdullaharis:
Continued.

find

.method protected onMeasure(II)V

replace whole method with this

.method protected onMeasure(II)V
.locals 17
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I

.prologue
.line 274
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

move-result v3

.line 275
.local v3, "width":I
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

move-result v4

.line 278
.local v4, "height":I
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mSearchBar:Landroid/view/View;

if-eqz v2, :cond_0

.line 279
new-instance v13, Landroid/graphics/Rect;

invoke-direct {v13}, Landroid/graphics/Rect;-><init>()V

.line 280
.local v13, "searchBarSpaceBounds":Landroid/graphics/Rect;
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mConfig:Lcom/android/systemui/recents/RecentsConfiguration;

move-object/from16 v0, p0

iget-object v5, v0, Lcom/android/systemui/recents/views/RecentsView;->mConfig:Lcom/android/systemui/recents/RecentsConfiguration;

iget-object v5, v5, Lcom/android/systemui/recents/RecentsConfiguration;->systemInsets:Landroid/graphics/Rect;

iget v5, v5, Landroid/graphics/Rect;->top:I

invoke-virtual {v2, v3, v4, v5, v13}, Lcom/android/systemui/recents/RecentsConfiguration;->getSearchBarBounds(IIILandroid/graphics/Rect;)V

.line 281
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mSearchBar:Landroid/view/View;

invoke-virtual {v13}, Landroid/graphics/Rect;->width()I

move-result v5

const/high16 v6, 0x40000000

invoke-static {v5, v6}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

move-result v5

invoke-virtual {v13}, Landroid/graphics/Rect;->height()I

move-result v6

const/high16 v16, 0x40000000

move/from16 v0, v16

invoke-static {v6, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

move-result v6

invoke-virtual {v2, v5, v6}, Landroid/view/View;->measure(II)V

.line 286
.end local v13 # "searchBarSpaceBounds":Landroid/graphics/Rect;
:cond_0
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mContext:Landroid/content/Context;

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v5, "show_clear_all_recents"

const/4 v6, 0x1

invoke-static {v2, v5, v6}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

const/4 v5, 0x1

if-ne v2, v5, :cond_2

const/4 v14, 0x1

.line 289
.local v14, "showClearAllRecents":Z
:goto_0
new-instance v7, Landroid/graphics/Rect;

invoke-direct {v7}, Landroid/graphics/Rect;-><init>()V

.line 290
.local v7, "taskStackBounds":Landroid/graphics/Rect;
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mConfig:Lcom/android/systemui/recents/RecentsConfiguration;

move-object/from16 v0, p0

iget-object v5, v0, Lcom/android/systemui/recents/views/RecentsView;->mConfig:Lcom/android/systemui/recents/RecentsConfiguration;

iget-object v5, v5, Lcom/android/systemui/recents/RecentsConfiguration;->systemInsets:Landroid/graphics/Rect;

iget v5, v5, Landroid/graphics/Rect;->top:I

move-object/from16 v0, p0

iget-object v6, v0, Lcom/android/systemui/recents/views/RecentsView;->mConfig:Lcom/android/systemui/recents/RecentsConfiguration;

iget-object v6, v6, Lcom/android/systemui/recents/RecentsConfiguration;->systemInsets:Landroid/graphics/Rect;

iget v6, v6, Landroid/graphics/Rect;->right:I

invoke-virtual/range {v2 .. v7}, Lcom/android/systemui/recents/RecentsConfiguration;->getTaskStackBounds(IIIILandroid/graphics/Rect;)V

.line 293
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mFloatingButton:Landroid/view/View;

if-eqz v2, :cond_3

if-eqz v14, :cond_3

.line 294
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mContext:Landroid/content/Context;

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v5, "recents_clear_all_location"

const/4 v6, 0x3

invoke-static {v2, v5, v6}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v10

.line 296
.local v10, "clearRecentsLocation":I
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mFloatingButton:Landroid/view/View;

invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

move-result-object v12

check-cast v12, Landroid/widget/FrameLayout$LayoutParams;

.line 298
.local v12, "params":Landroid/widget/FrameLayout$LayoutParams;
iget v2, v7, Landroid/graphics/Rect;->top:I

iput v2, v12, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I

.line 299
packed-switch v10, :pswitch_data_0

.line 305
const/16 v2, 0x35

iput v2, v12, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

.line 320
:goto_1
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mFloatingButton:Landroid/view/View;

invoke-virtual {v2, v12}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

.line 327
.end local v10 # "clearRecentsLocation":I
.end local v12 # "params":Landroid/widget/FrameLayout$LayoutParams;
:goto_2
invoke-virtual/range {p0 .. p0}, Lcom/android/systemui/recents/views/RecentsView;->getChildCount()I

move-result v9

.line 328
.local v9, "childCount":I
const/4 v11, 0x0

.local v11, "i":I
:goto_3
if-ge v11, v9, :cond_4

.line 329
move-object/from16 v0, p0

invoke-virtual {v0, v11}, Lcom/android/systemui/recents/views/RecentsView;->getChildAt(I)Landroid/view/View;

move-result-object v8

.line 330
.local v8, "child":Landroid/view/View;
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mSearchBar:Landroid/view/View;

if-eq v8, v2, :cond_1

invoke-virtual {v8}, Landroid/view/View;->getVisibility()I

move-result v2

const/16 v5, 0x8

if-eq v2, v5, :cond_1

move-object v15, v8

.line 331
check-cast v15, Lcom/android/systemui/recents/views/TaskStackView;

.line 333
.local v15, "tsv":Lcom/android/systemui/recents/views/TaskStackView;
invoke-virtual {v15, v7}, Lcom/android/systemui/recents/views/TaskStackView;->setStackInsetRect(Landroid/graphics/Rect;)V

.line 334
move/from16 v0, p1

move/from16 v1, p2

invoke-virtual {v15, v0, v1}, Lcom/android/systemui/recents/views/TaskStackView;->measure(II)V

.line 328
.end local v15 # "tsv":Lcom/android/systemui/recents/views/TaskStackView;
:cond_1
add-int/lit8 v11, v11, 0x1

goto :goto_3

.line 286
.end local v7 # "taskStackBounds":Landroid/graphics/Rect;
.end local v8 # "child":Landroid/view/View;
.end local v9 # "childCount":I
.end local v11 # "i":I
.end local v14 # "showClearAllRecents":Z
:cond_2
const/4 v14, 0x0

goto :goto_0

.line 301
.restart local v7 # "taskStackBounds":Landroid/graphics/Rect;
.restart local v10 # "clearRecentsLocation":I
.restart local v12 # "params":Landroid/widget/FrameLayout$LayoutParams;
.restart local v14 # "showClearAllRecents":Z
:pswitch_0
const/16 v2, 0x33

iput v2, v12, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

goto :goto_1

.line 308
:pswitch_1
const/16 v2, 0x31

iput v2, v12, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

goto :goto_1

.line 311
:pswitch_2
const/16 v2, 0x53

iput v2, v12, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

goto :goto_1

.line 314
:pswitch_3
const/16 v2, 0x55

iput v2, v12, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

goto :goto_1

.line 317
:pswitch_4
const/16 v2, 0x51

iput v2, v12, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

goto :goto_1

.line 322
.end local v10 # "clearRecentsLocation":I
.end local v12 # "params":Landroid/widget/FrameLayout$LayoutParams;
:cond_3
move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/systemui/recents/views/RecentsView;->mFloatingButton:Landroid/view/View;

const/16 v5, 0x8

invoke-virtual {v2, v5}, Landroid/view/View;->setVisibility(I)V

goto :goto_2

.line 338
.restart local v9 # "childCount":I
.restart local v11 # "i":I
:cond_4
move-object/from16 v0, p0

invoke-virtual {v0, v3, v4}, Lcom/android/systemui/recents/views/RecentsView;->setMeasuredDimension(II)V

.line 339
return-void

.line 299
nop

:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
:pswitch_3
:pswitch_2
:pswitch_4
.end packed-switch
.end method

find below method

.method public unfilterFilteredStacks()Z

add this on above of previous methos

.method public startFABanimation()V
.locals 4

.prologue
.line 349
invoke-virtual {p0}, Lcom/android/systemui/recents/views/RecentsView;->getParent()Landroid/view/ViewParent;

move-result-object v0

check-cast v0, Landroid/view/View;

const v1, 0x7f0e0170

invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

iput-object v0, p0, Lcom/android/systemui/recents/views/RecentsView;->mFloatingButton:Landroid/view/View;

.line 350
iget-object v0, p0, Lcom/android/systemui/recents/views/RecentsView;->mFloatingButton:Landroid/view/View;

invoke-virtual {v0}, Landroid/view/View;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

const/high16 v1, 0x3f800000

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

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/recents/views/RecentsView;->mConfig:Lcom/android/systemui/recents/RecentsConfiguration;

iget v1, v1, Lcom/android/systemui/recents/RecentsConfiguration;->taskBarEnterAnimDelay:I

int-to-long v2, v1

invoke-virtual {v0, v2, v3}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/recents/views/RecentsView;->mConfig:Lcom/android/systemui/recents/RecentsConfiguration;

iget v1, v1, Lcom/android/systemui/recents/RecentsConfiguration;->taskBarEnterAnimDuration:I

int-to-long v2, v1

invoke-virtual {v0, v2, v3}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/recents/views/RecentsView;->mConfig:Lcom/android/systemui/recents/RecentsConfiguration;

iget-object v1, v1, Lcom/android/systemui/recents/RecentsConfiguration;->fastOutLinearInInterpolator:Landroid/view/animation/Interpolator;

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

move-result-object v0

invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->withLayer()Landroid/view/ViewPropertyAnimator;

move-result-object v0

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

.line 356
return-void
.end method

find and replace id's

9.Open SystemUI\smali\com\android\systemui\recents\views\TaskStackView.smali

find

.method private updateStackTransforms(Ljava/util/ArrayList;Ljava/util/ArrayList;F[IZ)Z

add this on above of previous method

.method static synthetic access$000(Lcom/android/systemui/recents/views/TaskStackView;)Z
.locals 1
.param p0, "x0" # Lcom/android/systemui/recents/views/TaskStackView;

.prologue
.line 57
invoke-direct {p0}, Lcom/android/systemui/recents/views/TaskStackView;->dismissAll()Z

move-result v0

return v0
.end method

.method static synthetic access$102(Lcom/android/systemui/recents/views/TaskStackView;Landroid/widget/PopupMenu;)Landroid/widget/PopupMenu;
.locals 0
.param p0, "x0" # Lcom/android/systemui/recents/views/TaskStackView;
.param p1, "x1" # Landroid/widget/PopupMenu;

.prologue
.line 57
iput-object p1, p0, Lcom/android/systemui/recents/views/TaskStackView;->mPopup:Landroid/widget/PopupMenu;

return-object p1
.end method

.method private dismissAll()Z
.locals 3

.prologue
const/4 v0, 0x1

.line 495
iget-object v1, p0, Lcom/android/systemui/recents/views/TaskStackView;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "recents_clear_all_dismiss_all"

invoke-static {v1, v2, v0}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

if-ne v1, v0, :cond_0

:goto_0
return v0

:cond_0
const/4 v0, 0x0

goto :goto_0
.end method

10.Open SystemUI\smali\com\android\systemui\recents\RecentsConfiguration.smali

find

.field static sPrevConfigurationHashCode:I

below add this code

.field public static searchBarSpaceHeightPx:I

find and remove below code

.field public searchBarSpaceHeightPx:I

find below method

.method public getSearchBarBounds(IIILandroid/graphics/Rect;)V

in the same method find below line

iget v0, p0, Lcom/android/systemui/recents/RecentsConfiguration;->searchBarSpaceHeightPx:I

replace the line with below code

sget v0, Lcom/android/systemui/recents/RecentsConfiguration;->searchBarSpaceHeightPx:I

find

.method update (Landroid / content / Context;) V

in the same method find and remove the below code

.line 201
const v7, 0x7f080064

invoke-virtual {v2, v7}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

move-result v7

iput v7, p0, Lcom/android/systemui/recents/RecentsConfiguration;->searchBarSpaceHeightPx:I

11.Decompile SystemUI and move to your device