diff --git a/app/src/main/java/org/flyve/mdm/agent/adapter/ApplicationsAdapter.java b/app/src/main/java/org/flyve/mdm/agent/adapter/ApplicationsAdapter.java index 9576ea7e03..1035bafdbb 100644 --- a/app/src/main/java/org/flyve/mdm/agent/adapter/ApplicationsAdapter.java +++ b/app/src/main/java/org/flyve/mdm/agent/adapter/ApplicationsAdapter.java @@ -100,9 +100,15 @@ public View getView(int position, View convertView, ViewGroup parent) { TextView txtStatus = vi.findViewById(R.id.txtStatus); - String status = parent.getResources().getString(R.string.app_installed); + String status; if(app.appStatus.equals("1")) { status = parent.getResources().getString(R.string.app_pending); + } else { + if(Helpers.isPackageInstalled(parent.getContext(), app.appPackage)) { + status = parent.getResources().getString(R.string.app_installed); + } else { + status = parent.getResources().getString(R.string.app_not_installed); + } } txtStatus.setText(status);