tt-rss-android/src/org/fox/ttrss/GlobalState.java

31 lines
733 B
Java
Raw Normal View History

package org.fox.ttrss;
import org.fox.ttrss.types.Article;
import org.fox.ttrss.types.ArticleList;
import org.fox.ttrss.types.Feed;
import android.app.Application;
2012-09-17 19:20:59 +00:00
public class GlobalState extends Application {
private static GlobalState m_singleton;
public ArticleList m_loadedArticles = new ArticleList();
public Feed m_activeFeed;
public Article m_activeArticle;
2012-09-17 19:20:59 +00:00
public int m_selectedArticleId;
public boolean m_unreadOnly = true;
public boolean m_unreadArticlesOnly = true;
2012-09-19 09:55:01 +00:00
public String m_sessionId;
public int m_apiLevel;
2012-09-17 19:20:59 +00:00
public static GlobalState getInstance(){
return m_singleton;
}
@Override
public final void onCreate() {
super.onCreate();
m_singleton = this;
}
}