Commit 2d7bbd5d8fc6ccc66bbacd559e8f124ebadebbf5
1 parent
831b817a
--no commit message
Showing
1 changed file
with
1 additions
and
2 deletions
src/com/upc/pbe/upcnews/MainActivity.java
... | ... | @@ -51,8 +51,7 @@ public class MainActivity extends Activity implements OnClickListener { |
51 | 51 | buttonDescarrega.setOnClickListener(this); |
52 | 52 | updateURL(); |
53 | 53 | //Si vitamio no està instal·lat, mostrem el missatge d'alerta |
54 | - PackageManager pm = getPackageManager(); | |
55 | - List<PackageInfo> apps = pm.getInstalledPackages(0); | |
54 | + List<PackageInfo> apps = getPackageManager().getInstalledPackages(0); | |
56 | 55 | for(int i = 0; i < apps.size(); i++) |
57 | 56 | { |
58 | 57 | if(apps.get(i).applicationInfo.loadLabel(getPackageManager()).toString().equals("Vitamio")) | ... | ... |