修复外部跳转NormalFragment失败问题,光环助手V3.1 RELEASE(20180112-0755)测试汇总

This commit is contained in:
kehaoyuan
2018-01-15 18:37:04 +08:00
parent 9ef3d65aa4
commit c0e7b8e3ee
17 changed files with 53 additions and 23 deletions

View File

@ -1,5 +1,6 @@
package com.gh.base;
import android.arch.lifecycle.Lifecycle;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
@ -94,11 +95,13 @@ public abstract class BaseActivity extends BaseToolBarActivity implements EasyPe
}
public void toast(String msg) {
Utils.toast(this, msg);
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
Utils.toast(this, msg);
}
public void toast(int msg) {
toast(getString(msg));
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
toast(getString(msg));
}
public void showShare(String url, String icon, String shareTitle, String shareSummary, ShareUtils.ShareType shareType) {