Fix Android updater compile issues
This commit is contained in:
@@ -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())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user