-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34deb02
commit a4dedba
Showing
2 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
/** | ||
* 用于管理所有 activity,和在前台的 activity | ||
* 可以通过直接持有 AppManager 对象执行对应方法 | ||
* 也可以通过 eventbus post 事件,远程遥控执行对应方法 | ||
* 也可以通过 {@link #post(Message)} ,远程遥控执行对应方法,用法和 EventBus 类似 | ||
* <p> | ||
* Created by jess on 14/12/2016 13:50 | ||
* Contact with [email protected] | ||
|
@@ -113,6 +113,7 @@ public void setHandleListener(HandleListener handleListener) { | |
|
||
/** | ||
* 通过此方法远程遥控 AppManager ,使 {@link #onReceive(Message)} 执行对应方法 | ||
* | ||
* @param msg | ||
*/ | ||
public static void post(Message msg) { | ||
|
@@ -166,6 +167,7 @@ public void startActivity(Class activityClass) { | |
public void release() { | ||
EventBus.getDefault().unregister(this); | ||
mActivityList.clear(); | ||
mHandleListener = null; | ||
mActivityList = null; | ||
mCurrentActivity = null; | ||
mApplication = null; | ||
|