summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recent
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2013-06-12 15:50:50 -0400
committerJohn Spurlock <jspurlock@google.com>2013-06-12 15:59:37 -0400
commitb0e49fc93c146d7ddc8e1f27ec67306a71168510 (patch)
treec4ae54e809e9fc92908fa98baaec849314e41030 /packages/SystemUI/src/com/android/systemui/recent
parenta6954f7e12b673f8b9cb29549c3136be6e64e693 (diff)
downloadframeworks_base-b0e49fc93c146d7ddc8e1f27ec67306a71168510.zip
frameworks_base-b0e49fc93c146d7ddc8e1f27ec67306a71168510.tar.gz
frameworks_base-b0e49fc93c146d7ddc8e1f27ec67306a71168510.tar.bz2
Remove TabletStatusBar from systemui package.
Change-Id: Ie8b556dbba8751617582f8c717ee83e480938b27
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recent')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java3
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java2
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java22
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/StatusBarTouchProxy.java40
4 files changed, 5 insertions, 62 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java b/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
index 02ddb73..8b2cd3f 100644
--- a/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
+++ b/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
@@ -37,7 +37,6 @@ import android.view.View;
import com.android.systemui.R;
import com.android.systemui.statusbar.phone.PhoneStatusBar;
-import com.android.systemui.statusbar.tablet.TabletStatusBar;
import java.util.ArrayList;
import java.util.List;
@@ -46,7 +45,7 @@ import java.util.concurrent.LinkedBlockingQueue;
public class RecentTasksLoader implements View.OnTouchListener {
static final String TAG = "RecentTasksLoader";
- static final boolean DEBUG = TabletStatusBar.DEBUG || PhoneStatusBar.DEBUG || false;
+ static final boolean DEBUG = PhoneStatusBar.DEBUG || false;
private static final int DISPLAY_TASKS = 20;
private static final int MAX_TASKS = DISPLAY_TASKS + 1; // allow extra for non-apps
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java
index 62030ad..818c2980 100644
--- a/packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java
@@ -30,7 +30,7 @@ import android.view.View;
import android.view.WindowManager;
import com.android.systemui.R;
-import com.android.systemui.statusbar.tablet.StatusBarPanel;
+import com.android.systemui.statusbar.StatusBarPanel;
import java.util.List;
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
index c64b954..ada30ac 100644
--- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
@@ -61,21 +61,19 @@ import android.widget.TextView;
import com.android.systemui.R;
import com.android.systemui.statusbar.BaseStatusBar;
+import com.android.systemui.statusbar.StatusBarPanel;
import com.android.systemui.statusbar.phone.PhoneStatusBar;
-import com.android.systemui.statusbar.tablet.StatusBarPanel;
-import com.android.systemui.statusbar.tablet.TabletStatusBar;
import java.util.ArrayList;
public class RecentsPanelView extends FrameLayout implements OnItemClickListener, RecentsCallback,
StatusBarPanel, Animator.AnimatorListener {
static final String TAG = "RecentsPanelView";
- static final boolean DEBUG = TabletStatusBar.DEBUG || PhoneStatusBar.DEBUG || false;
+ static final boolean DEBUG = PhoneStatusBar.DEBUG || false;
private PopupMenu mPopup;
private View mRecentsScrim;
private View mRecentsNoApps;
private ViewGroup mRecentsContainer;
- private StatusBarTouchProxy mStatusBarTouchProxy;
private boolean mShowing;
private boolean mWaitingToShow;
@@ -289,14 +287,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
}
public boolean isInContentArea(int x, int y) {
- if (pointInside(x, y, mRecentsContainer)) {
- return true;
- } else if (mStatusBarTouchProxy != null &&
- pointInside(x, y, mStatusBarTouchProxy)) {
- return true;
- } else {
- return false;
- }
+ return pointInside(x, y, mRecentsContainer);
}
public void show(boolean show) {
@@ -430,12 +421,6 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
return mShowing;
}
- public void setStatusBarView(View statusBarView) {
- if (mStatusBarTouchProxy != null) {
- mStatusBarTouchProxy.setStatusBar(statusBarView);
- }
- }
-
public void setRecentTasksLoader(RecentTasksLoader loader) {
mRecentTasksLoader = loader;
}
@@ -451,7 +436,6 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
super.onFinishInflate();
mRecentsContainer = (ViewGroup) findViewById(R.id.recents_container);
- mStatusBarTouchProxy = (StatusBarTouchProxy) findViewById(R.id.status_bar_touch_proxy);
mListAdapter = new TaskDescriptionAdapter(mContext);
if (mRecentsContainer instanceof RecentsScrollView){
RecentsScrollView scrollView
diff --git a/packages/SystemUI/src/com/android/systemui/recent/StatusBarTouchProxy.java b/packages/SystemUI/src/com/android/systemui/recent/StatusBarTouchProxy.java
deleted file mode 100644
index ded114f..0000000
--- a/packages/SystemUI/src/com/android/systemui/recent/StatusBarTouchProxy.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2011 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.systemui.recent;
-
-import android.content.Context;
-import android.util.AttributeSet;
-import android.view.MotionEvent;
-import android.view.View;
-import android.widget.FrameLayout;
-
-public class StatusBarTouchProxy extends FrameLayout {
-
- private View mStatusBar;
-
- public StatusBarTouchProxy(Context context, AttributeSet attrs) {
- super(context, attrs);
- }
-
- public void setStatusBar(View statusBar) {
- mStatusBar = statusBar;
- }
-
- public boolean onTouchEvent (MotionEvent event) {
- return mStatusBar.dispatchTouchEvent(event);
- }
-}