Fixing a context menu related crash mentioned in a crash report

This commit is contained in:
Sergey Eremin
2017-05-16 17:01:08 +03:00
parent a7aca78e6b
commit 9dbfef7678

View File

@@ -97,6 +97,8 @@ public class DownloadOptionsFragment extends DetailsFragment {
private boolean isConvertible(App app) {
return isInstalled(app)
&& !app.getPackageName().equals(BuildConfig.APPLICATION_ID)
&& null != app.getPackageInfo().applicationInfo
&& null != app.getPackageInfo().applicationInfo.sourceDir
&& !app.getPackageInfo().applicationInfo.sourceDir.endsWith("pkg.apk")
;
}