In redIt highlighted the fact that we add. So marked with id, which you need to take out of his
public.xml (Look at line
<public type = "id" name = "remove_all_task" ).
Add the following line:
.field private mChoreo: Lcom / android / systemui / recent / Choreographer;
.field private mClear: Landroid / widget / Button;
.field private mContext: Landroid / content / Context;
More rows and changeid to your:
.line 491
const v0, 0x7f0c0061
invoke-virtual {p0, v0}, Lcom / android / systemui / recent / RecentsPanelView; ->findViewById (I) Landroid / view / View;
move-result-object v0
iput-object v0, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mRecentsNoApps: Landroid / view / View;
const v0,0x7f0c00b6
invoke-virtual {p0, v0}, Lcom / android / systemui / recent / RecentsPanelView; ->findViewById (I) Landroid / view / View;
move-result-object v0
check-cast v0, Landroid / widget / Button;
iput-object v0, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mClear: Landroid / widget / Button;
invoke-virtual {v0, p0}, Landroid / widget / Button; ->setOnTouchListener (Landroid / view / View $ OnTouchListener;) V
.line 492
new-instance v0, Lcom / android / systemui / recent / Choreographer;
iget-object v2, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mRecentsScrim: Landroid / view / View;
iget-object v3, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mRecentsContainer: Landroid / view / ViewGroup;
iget-object v4, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mRecentsNoApps: Landroid / view / View;
move-object v1, p0
move-object v5, p0
invoke-direct / range {v0 .. v5}, Lcom / android / systemui / recent / Choreographer; -><init>(Lcom / android / systemui / recent / RecentsPanelView; Landroid / view / View; Landroid / view / View; Landroid / view / View; Landroid / animation / Animator $ AnimatorListener;) V
iput-object v0, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mChoreo: Lcom / android / systemui / recent / Choreographer;
3change to5) and (1change to2
.method public onTouch (Landroid / view / View; Landroid / view / MotionEvent;) Z
.locals5
.parameter "v"
.parameter "ev"
.prologue
const / 16 v2, 0x8
.line 614
iget-boolean v1, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mShowing: Z
if-nez v1,: cond_0
.line 615
invoke-virtual {p2}, Landroid / view / MotionEvent; ->getAction () I
move-result v1
and-int / lit16 v0, v1, 0xff
.line 616
.local v0, action: I
if-nez v0,: cond_2
.line 617
iget-object v1, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mPreloadTasksRunnable: Ljava / lang / Runnable;
invoke-virtual {p0, v1}, Lcom / android / systemui / recent / RecentsPanelView; ->post (Ljava / lang / Runnable;) Z
A little lower
Add the line and changeid to your:
.line 617
iget-object v1, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mPreloadTasksRunnable: Ljava / lang / Runnable;
invoke-virtual {p0, v1}, Lcom / android / systemui / recent / RecentsPanelView; ->post (Ljava / lang / Runnable;) Z
.line 632
.end local v0 #action: I
: cond_0
invoke-virtual {p1}, Landroid / view / View; ->getId () I
move-result v3
.local v3, id: I
const v4,0x7f0c00b6
if-ne v3, v4,: cond_1
invoke-virtual {p1}, Landroid / view / View; ->isPressed () Z
move-result v1
if-nez v1,: cond_1
const-string v3, "spooner"
const-string v4, "RecentsPanelView->removeAllTask ​​() "
invoke-static {v3, v4}, Landroid / util / Log; ->d (Ljava / lang / String; Ljava / lang / String;) I
invoke-virtual {p0}, Lcom / android / systemui / recent / RecentsPanelView; ->removeAllTask ​​() V
: cond_1
: goto_0
const / 4 v1,0x0
return v1
A little below
1change to2) And twice (2change to3
.line 618
.restart local v0 #action: I
: cond_2
const / 4 v1,0x3
if-ne v0, v1,: cond_3
.line 619
invoke-virtual {p0, v2}, Lcom / android / systemui / recent / RecentsPanelView; ->setVisibility (I) V
.line 620
invoke-virtual {p0}, Lcom / android / systemui / recent / RecentsPanelView; ->clearRecentTasksList () V
.line 622
iget-object v1, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mPreloadTasksRunnable: Ljava / lang / Runnable;
invoke-virtual {p0, v1}, Lcom / android / systemui / recent / RecentsPanelView; ->removeCallbacks (Ljava / lang / Runnable;) Z
goto: goto_0
.line 623
: cond_3
const / 4 v1, 0x1
if-ne v0, v1,: cond_0
And add the line again:
.method public refreshRecentTasksList () V
.locals 2
.prologue
.line 652
const / 4 v0, 0x0
const / 4 v1,0x0
invoke-direct {p0, v0, v1}, Lcom / android / systemui / recent / RecentsPanelView; ->refreshRecentTasksList (Ljava / util / ArrayList; Z) V
.line 653
return-void
.end method
.method public removeAllTask ​​() V
.locals 0
.prologue
iget-object p0, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mRecentsContainer: Landroid / view / ViewGroup;
check-cast p0, Lcom / android / systemui / recent / RecentsPanelView $ RecentsScrollView;
invoke-interface {p0}, Lcom / android / systemui / recent / RecentsPanelView $ RecentsScrollView; ->removeAllTask ​​() V
return-void
.end method
.method public setBar (Lcom / android / systemui / statusbar / BaseStatusBar;) V
.locals 0
.parameter "bar"
.prologue
.line 441
iput-object p1, p0, Lcom / android / systemui / recent / RecentsPanelView; ->mBar: Lcom / android / systemui / statusbar / BaseStatusBar;
.line 443
return-void
.end method