@@ -253,11 +253,11 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
//ActionsCode(author:fanguoyong,add clear all task button)
findViewById(R.id.clear_recents).setVisibility(View.VISIBLE);
- if (mRecentsView.hasSearchBar()) {
- mRecentsView.setSearchBarVisibility(View.VISIBLE);
- } else {
- addSearchBarAppWidgetView();
- }
+// if (mRecentsView.hasSearchBar()) {
+// mRecentsView.setSearchBarVisibility(View.VISIBLE);
+// } else {
+// addSearchBarAppWidgetView();
+// }
}
// Animate the SystemUI scrims into view
@@ -394,7 +394,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
inflateDebugOverlay();
// Bind the search app widget when we first start up
- bindSearchBarAppWidget();
+// bindSearchBarAppWidget();
// Register the broadcast receiver to handle messages when the screen is turned off
IntentFilter filter = new IntentFilter();
@@ -633,8 +633,8 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
@Override
public void refreshSearchWidget() {
- bindSearchBarAppWidget();
- addSearchBarAppWidgetView();
+ //bindSearchBarAppWidget();
+ //addSearchBarAppWidgetView();
}
安卓5.1.1点击最近任务的时候隐藏搜索栏
最新推荐文章于 2023-05-27 23:32:23 发布