Checklists in the body, colour from tags, and commit-derived CalVer #4
@@ -63,7 +63,6 @@ object AppUpdate {
|
|||||||
.setData(Uri.fromParts("package", context.packageName, null))
|
.setData(Uri.fromParts("package", context.packageName, null))
|
||||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
|
|
||||||
/** Where a download goes: app-private, so no storage permission is involved. */
|
|
||||||
/**
|
/**
|
||||||
* Whether this is a network to spend fifty-odd megabytes on without being asked.
|
* Whether this is a network to spend fifty-odd megabytes on without being asked.
|
||||||
*
|
*
|
||||||
@@ -80,6 +79,7 @@ object AppUpdate {
|
|||||||
return !manager.isActiveNetworkMetered
|
return !manager.isActiveNetworkMetered
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Where a download goes: app-private, so no storage permission is involved. */
|
||||||
fun downloadTarget(context: Context): File = File(context.cacheDir, "update.apk")
|
fun downloadTarget(context: Context): File = File(context.cacheDir, "update.apk")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user