public void notify_app_updated(String package_name){
  InstalledApp app=InstalledApp.find_app(package_name);
  if (app == null) {
    return;
  }
  final int pos=_installed_apps.indexOf(app);
  if (pos != -1) {
    _installed_apps.remove(pos);
    _installed_apps.add(pos,app);
    notifyItemChanged(pos);
  }
  if (app.is_update_available() && !app.has_notified()) {
    app.set_has_notified(true);
    app.save();
  }
}

public void notify_app_updated ( String package_name ) { InstalledApp app = InstalledApp . find_app ( package_name ) ; if ( app == null ) { return ; } final int pos = _installed_apps . indexOf ( app ) ; if ( pos != - 1 ) { _installed_apps . remove ( pos ) ; _installed_apps . add ( pos , app ) ; notifyItemChanged ( pos ) ; } if ( app . is_update_available ( ) && ! app . has_notified ( ) ) { app . set_has_notified ( true ) ; app . save ( ) ; } }
notifies the adapter that an app has been updated in the model .
