diff --git a/app/build.gradle b/app/build.gradle index 3e1383fe..3fa8800e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -65,6 +65,7 @@ dependencies { implementation 'androidx.fragment:fragment-ktx:1.2.5' implementation 'androidx.lifecycle:lifecycle-livedata-core-ktx:2.2.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0' + implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' implementation 'androidx.navigation:navigation-fragment-ktx:2.2.2' implementation 'androidx.navigation:navigation-ui-ktx:2.2.2' implementation 'androidx.preference:preference-ktx:1.1.1' diff --git a/app/src/main/java/com/vanced/manager/core/base/BaseFragment.kt b/app/src/main/java/com/vanced/manager/core/base/BaseFragment.kt index 1bcd46fb..2f759f37 100644 --- a/app/src/main/java/com/vanced/manager/core/base/BaseFragment.kt +++ b/app/src/main/java/com/vanced/manager/core/base/BaseFragment.kt @@ -2,6 +2,4 @@ package com.vanced.manager.core.base import androidx.fragment.app.Fragment -open class BaseFragment : Fragment() { - -} \ No newline at end of file +open class BaseFragment : Fragment() \ No newline at end of file diff --git a/app/src/main/java/com/vanced/manager/core/fragments/Home.kt b/app/src/main/java/com/vanced/manager/core/fragments/Home.kt index 131b09bf..5bbe2abf 100644 --- a/app/src/main/java/com/vanced/manager/core/fragments/Home.kt +++ b/app/src/main/java/com/vanced/manager/core/fragments/Home.kt @@ -16,7 +16,6 @@ import com.vanced.manager.core.base.BaseFragment import com.vanced.manager.core.downloader.MicrogDownloadService import com.vanced.manager.core.downloader.VancedDownloadService import com.vanced.manager.ui.MainActivity -import com.vanced.manager.ui.dialogs.DialogContainer.showRootDialog import com.vanced.manager.utils.PackageHelper.uninstallApk open class Home : BaseFragment(), View.OnClickListener { diff --git a/app/src/main/java/com/vanced/manager/core/installer/RootSplitInstallerService.kt b/app/src/main/java/com/vanced/manager/core/installer/RootSplitInstallerService.kt index a166ea07..eb725aee 100644 --- a/app/src/main/java/com/vanced/manager/core/installer/RootSplitInstallerService.kt +++ b/app/src/main/java/com/vanced/manager/core/installer/RootSplitInstallerService.kt @@ -58,7 +58,7 @@ class RootSplitInstallerService: Service() { val inputPipe = apkFile.getInputStream() try { process.outputStream.use { outputStream -> inputPipe.copyTo(outputStream) } - } catch (e: java.lang.Exception) { + } catch (e: Exception) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) process.destroyForcibly() else diff --git a/app/src/main/java/com/vanced/manager/utils/InternetTools.kt b/app/src/main/java/com/vanced/manager/utils/InternetTools.kt index ea9ae754..61bc9f63 100644 --- a/app/src/main/java/com/vanced/manager/utils/InternetTools.kt +++ b/app/src/main/java/com/vanced/manager/utils/InternetTools.kt @@ -1,6 +1,5 @@ package com.vanced.manager.utils -import android.app.Activity import android.content.Context import android.net.Uri import androidx.browser.customtabs.CustomTabsIntent diff --git a/app/src/main/res/layout/fragment_vanced_language_selection.xml b/app/src/main/res/layout/fragment_vanced_language_selection.xml index 162b9911..fafe3510 100644 --- a/app/src/main/res/layout/fragment_vanced_language_selection.xml +++ b/app/src/main/res/layout/fragment_vanced_language_selection.xml @@ -2,7 +2,6 @@