don't update widget every time headlinesactivity closes

This commit is contained in:
Andrew Dolgov 2015-02-16 14:24:17 +03:00
parent b52f2a6d0f
commit 6756f75858
2 changed files with 11 additions and 11 deletions

View File

@ -25,6 +25,7 @@ import org.fox.ttrss.types.Article;
import org.fox.ttrss.types.ArticleList;
import org.fox.ttrss.types.Feed;
import org.fox.ttrss.types.FeedCategory;
import org.fox.ttrss.widget.SmallWidgetProvider;
import java.util.Date;
import java.util.HashMap;
@ -466,6 +467,14 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
}
}
@Override
public void onStop() {
super.onStop();
Intent updateWidgetIntent = new Intent(SmallWidgetProvider.ACTION_REQUEST_UPDATE);
sendBroadcast(updateWidgetIntent);
}
@Override
public void onArticleSelected(Article article) {
onArticleSelected(article, true);

View File

@ -45,7 +45,6 @@ import org.fox.ttrss.types.Article;
import org.fox.ttrss.types.ArticleList;
import org.fox.ttrss.types.Feed;
import org.fox.ttrss.types.Label;
import org.fox.ttrss.widget.SmallWidgetProvider;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
@ -310,14 +309,6 @@ public class OnlineActivity extends CommonActivity {
return false;
}
@Override
public void onStop() {
super.onStop();
Intent initialUpdateIntent = new Intent(SmallWidgetProvider.ACTION_REQUEST_UPDATE);
sendBroadcast(initialUpdateIntent);
}
@Override
public void onPause() {
super.onPause();