don't update widget every time headlinesactivity closes
This commit is contained in:
parent
b52f2a6d0f
commit
6756f75858
@ -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,7 +467,15 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user