Rewrite Topics

This commit is contained in:
topjohnwu
2018-08-01 00:47:31 +08:00
parent 23c7bbc7d5
commit 863b9a410f
16 changed files with 150 additions and 155 deletions

View File

@@ -111,13 +111,13 @@ public class MainActivity extends Activity
}
@Override
public void onTopicPublished(Topic topic) {
recreate();
public int[] getSubscribedTopics() {
return new int[] {Topic.RELOAD_ACTIVITY};
}
@Override
public Topic[] getSubscription() {
return new Topic[] { getMagiskManager().reloadActivity };
public void onPublish(int topic, Object[] result) {
recreate();
}
public void checkHideSection() {