Bug 662075 - Android fails to open update APK [r=blassey]

This commit is contained in:
Matt Brubeck 2011-06-08 14:33:49 -07:00
parent 0e6b571c88
commit 30b08338bc

View File

@ -581,7 +581,7 @@ abstract public class GeckoApp
Log.i("GeckoAppJava", "Update is available!");
// Launch APK
File updateFileToRun = new File(updateDir + getPackageName() + "-update.apk");
File updateFileToRun = new File(updateDir, getPackageName() + "-update.apk");
try {
if (updateFile.renameTo(updateFileToRun)) {
String amCmd = "/system/bin/am start -a android.intent.action.VIEW " +