mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-02-13 02:00:53 -06:00
refactor
This commit is contained in:
@@ -160,8 +160,8 @@ public class PlayerUiManager extends PlayerEventListenerHelper {
|
||||
}
|
||||
|
||||
private void updateBackgroundPlayback() {
|
||||
if (mBlockEngine) {
|
||||
ViewManager.instance(mActivity).blockTop(mActivity); // open player regarding its position in stack
|
||||
if (mBlockEngine && !mEnablePIP) {
|
||||
ViewManager.instance(mActivity).blockTop(mActivity); // open player regarding its position in stack when playing audio
|
||||
} else {
|
||||
ViewManager.instance(mActivity).blockTop(null);
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public class ViewManager {
|
||||
}
|
||||
|
||||
try {
|
||||
Log.d(TAG, "Launching parent activity...");
|
||||
Log.d(TAG, "Launching parent activity: " + parentActivity.getSimpleName());
|
||||
Intent intent = new Intent(activity, parentActivity);
|
||||
|
||||
activity.startActivity(intent);
|
||||
|
||||
Reference in New Issue
Block a user