Skip to content

Commit 85022e9

Browse files
author
andrewleo
committed
Merge branch 'develop'
2 parents 7b8333a + 211fcd5 commit 85022e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/com/netease/qa/emmagee/utils/ProcessInfo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ public static String getTopActivity(Context context) {
210210
ActivityManager manager = (ActivityManager) context
211211
.getSystemService(Context.ACTIVITY_SERVICE);
212212
// Note: getRunningTasks is deprecated in API 21(Official)
213-
// if (Build.VERSION.SDK_INT >= 21) {
214-
// return Constants.NA;
215-
// }
213+
if (Build.VERSION.SDK_INT >= 21) {
214+
return Constants.NA;
215+
}
216216
List<RunningTaskInfo> runningTaskInfos = manager.getRunningTasks(1);
217217
if (runningTaskInfos != null)
218218
return (runningTaskInfos.get(0).topActivity).toString();

0 commit comments

Comments
 (0)