mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-23 11:45:11 +00:00
broadcast test 2
This commit is contained in:
parent
30c84873a4
commit
f942ceda53
2 changed files with 2 additions and 10 deletions
|
@ -130,9 +130,7 @@ class VancedDownloadService: Service() {
|
|||
*/
|
||||
|
||||
private fun prepareInstall(variant: String) {
|
||||
val intent = Intent()
|
||||
intent.action = HomeFragment.VANCED_DOWNLOADED
|
||||
LocalBroadcastManager.getInstance(this).sendBroadcast(intent)
|
||||
LocalBroadcastManager.getInstance(this).sendBroadcast(Intent(HomeFragment.VANCED_DOWNLOADED))
|
||||
if (variant == "root")
|
||||
startService(Intent(this, RootSplitInstallerService::class.java))
|
||||
else
|
||||
|
|
|
@ -33,7 +33,7 @@ class AppInstallerService: Service() {
|
|||
PackageInstaller.STATUS_SUCCESS -> {
|
||||
Log.d(TAG, "Installation succeed")
|
||||
getSharedPreferences("installPrefs", Context.MODE_PRIVATE).edit().putBoolean("isInstalling", false).apply()
|
||||
sendRefreshHome()
|
||||
LocalBroadcastManager.getInstance(this).sendBroadcast(Intent(HomeFragment.REFRESH_HOME))
|
||||
createBasicNotif(getString(
|
||||
R.string.successfully_installed,
|
||||
"Microg"
|
||||
|
@ -59,12 +59,6 @@ class AppInstallerService: Service() {
|
|||
LocalBroadcastManager.getInstance(this).sendBroadcast(mIntent)
|
||||
}
|
||||
|
||||
private fun sendRefreshHome() {
|
||||
val intent = Intent()
|
||||
intent.action = HomeFragment.REFRESH_HOME
|
||||
LocalBroadcastManager.getInstance(this).sendBroadcast(intent)
|
||||
}
|
||||
|
||||
override fun onBind(intent: Intent?): IBinder? {
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue