use of com.newsrob.DBQuery in project newsrob by marianokamp.
the class AbstractNewsRobListActivity method shouldMarkAllReadButtonBeEnabled.
protected boolean shouldMarkAllReadButtonBeEnabled() {
DBQuery dbq = new DBQuery(getDbQuery());
dbq.setShouldHideReadItemsWithoutUpdatingThePreference(true);
return getEntryManager().isMarkAllReadPossible(dbq);
}
use of com.newsrob.DBQuery in project newsrob by marianokamp.
the class UnreadWidgetPrefActivity method doCreateWidget.
private void doCreateWidget(WidgetPreferences widgetPrefs, EntryManager entryManager, String filterLabel, Long filterFeedId) {
DBQuery dbq = new DBQuery(entryManager, filterLabel, filterFeedId);
dbq.setShouldHideReadItemsWithoutUpdatingThePreference(true);
widgetPrefs.setDBQuery(dbq);
entryManager.saveWidgetPreferences(appWidgetId, widgetPrefs);
Intent resultValue = new Intent();
resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
setResult(RESULT_OK, resultValue);
finish();
PL.log("doCreateWidget, about to call updateAppWidget", entryManager.getContext());
RemoteViews remoteViews = UnreadWidgetProvider.buildUpdate(this, appWidgetId);
AppWidgetManager widgetManager = AppWidgetManager.getInstance(this);
widgetManager.updateAppWidget(appWidgetId, remoteViews);
}
Aggregations