This repository has been archived by the owner on Mar 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from YTVanced/dev
Release 1.1.0
- Loading branch information
Showing
64 changed files
with
2,573 additions
and
820 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,15 @@ | ||
package com.vanced.manager.core | ||
|
||
import android.app.Application | ||
import android.widget.Toast | ||
import androidx.preference.PreferenceManager | ||
import com.dezlum.codelabs.getjson.GetJson | ||
import com.downloader.PRDownloader | ||
import com.vanced.manager.R | ||
import com.vanced.manager.utils.InternetTools | ||
import com.vanced.manager.utils.NotificationHelper.createNotifChannel | ||
|
||
class App: Application() { | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
//checkUpdates() | ||
PRDownloader.initialize(applicationContext) | ||
PRDownloader.initialize(this) | ||
createNotifChannel(this) | ||
} | ||
|
||
/* | ||
private fun checkUpdates() { | ||
val checkPrefs = PreferenceManager.getDefaultSharedPreferences(this).getBoolean("auto_check_update", true) | ||
if (checkPrefs) { | ||
if (GetJson().isConnected(this) && InternetTools.isUpdateAvailable()) { | ||
Toast.makeText(this, getString(R.string.update_found), Toast.LENGTH_SHORT).show() | ||
} else | ||
Toast.makeText(this, getString(R.string.update_notfound), Toast.LENGTH_SHORT).show() | ||
} | ||
} | ||
*/ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.