This commit is contained in:
X1nto 2020-05-27 18:06:49 +04:00
parent b6ad5f77e2
commit e206d0d5c0
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,6 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
android:theme="@style/LightTheme.Blue"
tools:ignore="UnusedAttribute">
<activity
@ -38,7 +37,8 @@
</activity>
<activity
android:name=".ui.MainActivity"
android:label="@string/app_name" />
android:label="@string/app_name"
android:theme="@style/LightTheme.Blue"/>
<meta-data
android:name="preloaded_fonts"

View File

@ -49,7 +49,7 @@ class SplitInstallerService: Service() {
}
private fun alertBuilder(msg: String) {
val dialog = AlertDialog.Builder(this)
val dialog = AlertDialog.Builder(applicationContext)
.setTitle("Error")
.setMessage("Operation failed because $msg")
.setPositiveButton(getString(R.string.close)) { dialog, _ -> dialog.dismiss() }
@ -66,7 +66,7 @@ class SplitInstallerService: Service() {
private fun launchVanced() {
val intent = Intent()
intent.component = ComponentName("com.vanced.android.youtube", "com.vanced.android.youtube.HomeActivity")
val dialog = AlertDialog.Builder(this)
val dialog = AlertDialog.Builder(applicationContext)
.setTitle("Success!")
.setMessage("Vanced has been successfully installed, do you want to launch it now?")
.setPositiveButton("Launch") {