Fix Android updater compile issues

This commit is contained in:
Dwindi Ramadhana
2026-02-21 22:33:38 +07:00
parent efc013f498
commit c467b47559

View File

@@ -62,7 +62,7 @@ public class MainActivity extends BridgeActivity {
} }
@Override @Override
protected void onDestroy() { public void onDestroy() {
super.onDestroy(); super.onDestroy();
if (downloadReceiver != null) { if (downloadReceiver != null) {
unregisterReceiver(downloadReceiver); unregisterReceiver(downloadReceiver);
@@ -289,7 +289,7 @@ public class MainActivity extends BridgeActivity {
if ("file".equals(downloadUri.getScheme())) { if ("file".equals(downloadUri.getScheme())) {
installUri = FileProvider.getUriForFile( installUri = FileProvider.getUriForFile(
this, this,
BuildConfig.APPLICATION_ID + ".fileprovider", getPackageName() + ".fileprovider",
new java.io.File(downloadUri.getPath()) new java.io.File(downloadUri.getPath())
); );
} }