Refactoring: Remove unused parameter from topRunningActivityLocked.
Change-Id: I350e9459af13858e4ed95fe6511383266f509cb8
diff --git a/services/core/java/com/android/server/am/TaskRecord.java b/services/core/java/com/android/server/am/TaskRecord.java
index 7e14b2b..77dbad4 100644
--- a/services/core/java/com/android/server/am/TaskRecord.java
+++ b/services/core/java/com/android/server/am/TaskRecord.java
@@ -557,11 +557,11 @@
return null;
}
- ActivityRecord topRunningActivityLocked(ActivityRecord notTop) {
+ ActivityRecord topRunningActivityLocked() {
if (stack != null) {
for (int activityNdx = mActivities.size() - 1; activityNdx >= 0; --activityNdx) {
ActivityRecord r = mActivities.get(activityNdx);
- if (!r.finishing && r != notTop && stack.okToShowLocked(r)) {
+ if (!r.finishing && stack.okToShowLocked(r)) {
return r;
}
}