mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-06 05:50:31 -06:00
add additional boot init for all flavors
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<!-- https://developer.android.com/guide/components/activities/background-starts -->
|
||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
||||
<uses-permission android:name="android.permission.ACTION_MANAGE_OVERLAY_PERMISSION" />
|
||||
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
|
||||
<!-- <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" /> -->
|
||||
|
||||
<!-- Add requestLegacyExternalStorage to fix unavailable storage on Android 10 (doesn't work on Android 11) -->
|
||||
<!-- More info: https://stackoverflow.com/questions/63364476/requestlegacyexternalstorage-is-not-working-in-android-11-api-30 -->
|
||||
|
||||
@@ -569,6 +569,10 @@ public class VideoStateController extends BasePlayerController {
|
||||
}
|
||||
|
||||
private void restoreVolume() {
|
||||
if (getVideo() == null || getPlayer() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
float newVolume = getPlayerData().getPlayerVolume();
|
||||
|
||||
if (getPlayerTweaksData().isPlayerAutoVolumeEnabled()) {
|
||||
@@ -587,6 +591,10 @@ public class VideoStateController extends BasePlayerController {
|
||||
}
|
||||
|
||||
private void restorePitch() {
|
||||
if (getPlayer() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
getPlayer().setPitch(getPlayerData().getPitch());
|
||||
}
|
||||
|
||||
|
||||
@@ -465,7 +465,7 @@ public class MediaServiceManager implements OnAccountChange {
|
||||
* Channels could be of two types: regular (usr channel) and playlist channel (contains single row, try search: 'Mon mix')
|
||||
*/
|
||||
public static void chooseChannelPresenter(Context context, Video item) {
|
||||
if (item.hasVideo() || item.belongsToChannelUploads()) { // regular channel
|
||||
if (item.hasVideo() || item.hasReloadPageKey()) { // an channel item from Channels section
|
||||
ChannelPresenter.instance(context).openChannel(item);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.liskovsoft.smartyoutubetv2.common.utils;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class CustomInit {
|
||||
public static void init(Context context) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.liskovsoft.smartyoutubetv2.common.utils;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class CustomInit {
|
||||
public static void init(Context context) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.liskovsoft.smartyoutubetv2.common.utils;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class CustomInit {
|
||||
public static void init(Context context) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.liskovsoft.smartyoutubetv2.common.utils;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class CustomInit {
|
||||
public static void init(Context context) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user