mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-27 05:23:00 +00:00
fixed apk compression
This commit is contained in:
parent
f19e9d8478
commit
811beb035c
3 changed files with 24 additions and 14 deletions
22
app/app.iml
22
app/app.iml
File diff suppressed because one or more lines are too long
|
@ -21,6 +21,9 @@ android {
|
|||
disable 'MissingTranslation'
|
||||
}
|
||||
|
||||
aaptOptions {
|
||||
noCompress 'apk', '.apk'
|
||||
}
|
||||
|
||||
applicationVariants.all { variant ->
|
||||
variant.resValue "string", "versionName", variant.versionName
|
||||
|
@ -60,8 +63,6 @@ dependencies {
|
|||
implementation 'androidx.preference:preference-ktx:1.1.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
implementation 'androidx.browser:browser:1.2.0'
|
||||
implementation 'androidx.navigation:navigation-fragment:2.2.2'
|
||||
implementation 'androidx.navigation:navigation-ui:2.2.2'
|
||||
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
||||
implementation 'androidx.navigation:navigation-fragment-ktx:2.2.2'
|
||||
implementation 'androidx.navigation:navigation-ui-ktx:2.2.2'
|
||||
|
|
|
@ -5,6 +5,8 @@ import android.content.BroadcastReceiver
|
|||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.IntentFilter
|
||||
import android.content.res.ColorStateList
|
||||
import android.graphics.Color
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.view.*
|
||||
|
@ -67,6 +69,8 @@ class HomeFragment : Home() {
|
|||
if (variantPref == "root") {
|
||||
attachRootChangelog()
|
||||
vancedinstallbtn.isEnabled = false
|
||||
vancedinstallbtn?.backgroundTintList = ColorStateList.valueOf(Color.DKGRAY)
|
||||
vancedinstallbtn?.setTextColor(ColorStateList.valueOf(Color.GRAY))
|
||||
} else
|
||||
attachNonrootChangelog()
|
||||
|
||||
|
@ -88,7 +92,6 @@ class HomeFragment : Home() {
|
|||
pm?.let { isPackageInstalled("com.vanced.android.youtube", it) }
|
||||
}
|
||||
val vancedinstallbtn = view?.findViewById<MaterialButton>(R.id.vanced_installbtn)
|
||||
val vancedLatestTxt = view?.findViewById<TextView>(R.id.vanced_latest_version)
|
||||
val networkErrorLayout = view?.findViewById<MaterialCardView>(R.id.home_network_wrapper)
|
||||
|
||||
disposable = ReactiveNetwork.observeInternetConnectivity()
|
||||
|
@ -134,6 +137,10 @@ class HomeFragment : Home() {
|
|||
}
|
||||
} else {
|
||||
vancedinstallbtn?.isEnabled = false
|
||||
vancedinstallbtn?.backgroundTintList = ColorStateList.valueOf(Color.DKGRAY)
|
||||
vancedinstallbtn?.setTextColor(ColorStateList.valueOf(Color.GRAY))
|
||||
vancedinstallbtn?.text = activity?.getString(R.string.no_microg)
|
||||
vancedinstallbtn?.icon = null
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -226,6 +233,8 @@ class HomeFragment : Home() {
|
|||
loadCircle?.visibility = View.GONE
|
||||
statusTxt?.text = "Disabled"
|
||||
vancedinstallbtn?.isEnabled = true
|
||||
vancedinstallbtn?.backgroundTintList = ColorStateList.valueOf(R.attr.colorPrimary)
|
||||
vancedinstallbtn?.setTextColor(ColorStateList.valueOf(Color.WHITE)
|
||||
val mIntent = Intent(activity, RootAppUninstaller::class.java)
|
||||
mIntent.putExtra("Data", "com.vanced.stub")
|
||||
activity?.startService(mIntent)
|
||||
|
|
Loading…
Reference in a new issue