修改“查询我的分享”不生效问题

This commit is contained in:
tongchenfei
2020-11-04 20:04:40 +08:00
parent 706749aa80
commit aaa955a1fd
3 changed files with 12 additions and 6 deletions

View File

@@ -100,8 +100,8 @@ public class SchemeIntent implements IMogoStatusChangedListener {
if ( !mApis.getStatusManagerApi().isMainPageOnResume() ) {
long delay = 0L;
if ( isNaviIntent( intent ) ) {
delay = 2_000L;
if ( isDelay( intent ) ) {
delay = 5_000L;
}
mNextIntent = new IntentWrapper( intent, delay );
mApis.getLauncherApi().backToLauncher( mContext );
@@ -127,13 +127,13 @@ public class SchemeIntent implements IMogoStatusChangedListener {
mNextIntent = null;
}
private boolean isNaviIntent( Intent intent ) {
if ( intent == null || intent.getData() == null ) {
private boolean isDelay(Intent intent ) {
if ( mApis.getStatusManagerApi().isMainPageLaunched() || intent == null || intent.getData() == null ) {
return false;
}
Uri target = intent.getData();
String type = target.getQueryParameter( "type" );
return TextUtils.equals( TYPE_NAVI, type );
return TextUtils.equals(TYPE_NAVI, type) || TextUtils.equals(TYPE_SHOW_SHARE_PANEL, type);
}
private void handleSwitch2Action( Uri target ) {