AppDetails: Remove another extra getPackageManager()
This commit is contained in:
parent
da6fd323fd
commit
9475d1634c
@ -617,9 +617,8 @@ public class AppDetails extends AppCompatActivity implements ProgressListener, A
|
|||||||
mInstalledSigID = null;
|
mInstalledSigID = null;
|
||||||
|
|
||||||
if (app.isInstalled()) {
|
if (app.isInstalled()) {
|
||||||
PackageManager pm = getPackageManager();
|
|
||||||
try {
|
try {
|
||||||
PackageInfo pi = pm.getPackageInfo(app.id, PackageManager.GET_SIGNATURES);
|
PackageInfo pi = mPm.getPackageInfo(app.id, PackageManager.GET_SIGNATURES);
|
||||||
Hasher hash = new Hasher("MD5", pi.signatures[0].toCharsString().getBytes());
|
Hasher hash = new Hasher("MD5", pi.signatures[0].toCharsString().getBytes());
|
||||||
mInstalledSigID = hash.getHash();
|
mInstalledSigID = hash.getHash();
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user