Fix Android updater compile issues
This commit is contained in:
@@ -62,7 +62,7 @@ public class MainActivity extends BridgeActivity {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
if (downloadReceiver != null) {
|
||||
unregisterReceiver(downloadReceiver);
|
||||
@@ -289,7 +289,7 @@ public class MainActivity extends BridgeActivity {
|
||||
if ("file".equals(downloadUri.getScheme())) {
|
||||
installUri = FileProvider.getUriForFile(
|
||||
this,
|
||||
BuildConfig.APPLICATION_ID + ".fileprovider",
|
||||
getPackageName() + ".fileprovider",
|
||||
new java.io.File(downloadUri.getPath())
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user