提交 bf70bf5f 编写于 作者: J JessYan

Improve AppManager

上级 cad70227
......@@ -22,6 +22,7 @@ import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.view.View;
......@@ -234,8 +235,9 @@ public final class AppManager {
*
* @return
*/
@Nullable
public Activity getCurrentActivity() {
return mCurrentActivity != null ? mCurrentActivity : null;
return mCurrentActivity;
}
/**
......@@ -248,6 +250,7 @@ public final class AppManager {
*
* @return
*/
@Nullable
public Activity getTopActivity() {
if (mActivityList == null) {
Timber.tag(TAG).w("mActivityList == null when getTopActivity()");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册