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 b86f74a965
commit bec9fbc11f

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 " +