mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-27 05:23:00 +00:00
fixes
This commit is contained in:
parent
a7e2d4a252
commit
985999899b
2 changed files with 2 additions and 3 deletions
|
@ -16,10 +16,9 @@ object AppUtils {
|
||||||
|
|
||||||
fun isInstallationRunning(context: Context): Boolean {
|
fun isInstallationRunning(context: Context): Boolean {
|
||||||
val serviceClasses = listOf(VancedDownloadService::class.java, MicrogDownloadService::class.java, AppInstaller::class.java, AppInstallerService::class.java, SplitInstaller::class.java, SplitInstallerService::class.java, RootSplitInstallerService::class.java)
|
val serviceClasses = listOf(VancedDownloadService::class.java, MicrogDownloadService::class.java, AppInstaller::class.java, AppInstallerService::class.java, SplitInstaller::class.java, SplitInstallerService::class.java, RootSplitInstallerService::class.java)
|
||||||
serviceClasses.any { service ->
|
return serviceClasses.any { service ->
|
||||||
isServiceRunning(service, context)
|
isServiceRunning(service, context)
|
||||||
}
|
}
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/toolbar_settings"
|
android:id="@+id/toolbar_settings"
|
||||||
android:title="@string/title_about"
|
android:title="@string/title_settings"
|
||||||
android:icon="@drawable/ic_settings_black_24dp"
|
android:icon="@drawable/ic_settings_black_24dp"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue