mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-06 05:50:31 -06:00
splash: handle internal intents fix
This commit is contained in:
@@ -365,6 +365,6 @@ public class SplashPresenter extends BasePresenter<SplashView> {
|
||||
|
||||
boolean isInternalIntent = intent.getBooleanExtra(GlobalConstants.INTERNAL_INTENT, false);
|
||||
|
||||
viewManager.enablePlayerOnlyMode(!isInternalIntent || GeneralData.instance(getContext()).isReturnToLauncherEnabled());
|
||||
viewManager.enablePlayerOnlyMode(!isInternalIntent && GeneralData.instance(getContext()).isReturnToLauncherEnabled());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ public class AppUtil {
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
intent.setData(Uri.parse(url));
|
||||
intent.setClassName(getAppPackageName(), getBootstrapClassName());
|
||||
intent.putExtra(GlobalConstants.INTERNAL_INTENT, true);
|
||||
//intent.putExtra(GlobalConstants.INTERNAL_INTENT, true);
|
||||
|
||||
return intent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user