提交 85022e95 编写于 作者: A andrewleo

Merge branch 'develop'

......@@ -210,9 +210,9 @@ public class ProcessInfo {
ActivityManager manager = (ActivityManager) context
.getSystemService(Context.ACTIVITY_SERVICE);
// Note: getRunningTasks is deprecated in API 21(Official)
// if (Build.VERSION.SDK_INT >= 21) {
// return Constants.NA;
// }
if (Build.VERSION.SDK_INT >= 21) {
return Constants.NA;
}
List<RunningTaskInfo> runningTaskInfos = manager.getRunningTasks(1);
if (runningTaskInfos != null)
return (runningTaskInfos.get(0).topActivity).toString();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册