| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
| 9 import android.app.Activity; | 9 import android.app.Activity; |
| 10 import android.app.ActivityManager; | 10 import android.app.ActivityManager; |
| (...skipping 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1988 } | 1988 } |
| 1989 | 1989 |
| 1990 ActivityManager manager = (ActivityManager) getSystemService(Context.ACT
IVITY_SERVICE); | 1990 ActivityManager manager = (ActivityManager) getSystemService(Context.ACT
IVITY_SERVICE); |
| 1991 for (AppTask task : manager.getAppTasks()) { | 1991 for (AppTask task : manager.getAppTasks()) { |
| 1992 RecentTaskInfo info = DocumentUtils.getTaskInfoFromTask(task); | 1992 RecentTaskInfo info = DocumentUtils.getTaskInfoFromTask(task); |
| 1993 if (info == null) continue; | 1993 if (info == null) continue; |
| 1994 if (info.id == sMergedInstanceTaskId) return true; | 1994 if (info.id == sMergedInstanceTaskId) return true; |
| 1995 } | 1995 } |
| 1996 return false; | 1996 return false; |
| 1997 } | 1997 } |
| 1998 |
| 1999 @Override |
| 2000 public boolean supportsFullscreenActivity() { |
| 2001 return true; |
| 2002 } |
| 1998 } | 2003 } |
| OLD | NEW |