Код: Выделить всё
if (!videoKind.equals("trialer")) {
Setting.refresh=true;
lastSeen();
SharedPreferences sharedPreferences = this.getSharedPreferences(this.getString(R.string.app_name),0);
SharedPreferences.Editor editor=sharedPreferences.edit();
editor.putLong(videoUrl,10);
editor.commit();
}
Код: Выделить всё
SharedPreferences sharedPreferences = context.getSharedPreferences(context.getString(R.string.app_name),0);
for (SourceModel m:model.getSourceModels()) {
if (sharedPreferences.getLong(m.getUrl(),-1)!=-1){
holder.seen.setVisibility(View.VISIBLE);
}
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... roidtv-app