Potential crash when using new version without updating repo index
This commit is contained in:
parent
2512ce7145
commit
6fddf13fb3
@ -412,7 +412,8 @@ public class AppDetails extends ListActivity {
|
||||
// Install the version of this app denoted by 'curapk'.
|
||||
private void install() {
|
||||
|
||||
if (mInstalledSigID != null && !curapk.sig.equals(mInstalledSigID)) {
|
||||
if (mInstalledSigID != null && curapk.sig != null
|
||||
&& !curapk.sig.equals(mInstalledSigID)) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setMessage(R.string.SignatureMismatch).setPositiveButton(
|
||||
"Ok", new DialogInterface.OnClickListener() {
|
||||
|
@ -20,18 +20,11 @@ package org.fdroid.fdroid;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.app.ListActivity;
|
||||
import android.app.SearchManager;
|
||||
import android.app.AlertDialog.Builder;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
|
Loading…
x
Reference in New Issue
Block a user