blob: 3df8ae349105e7a08533b0f78db139f0871f5702 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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;
public class GlobalState extends Application {
private static GlobalState m_singleton;
public Article m_activeArticle;
public ArticleList m_loadedArticles = new ArticleList();
public Feed m_activeFeed;
public Article m_selectedArticle;
public int m_selectedArticleId;
public static GlobalState getInstance(){
return m_singleton;
}
@Override
public final void onCreate() {
super.onCreate();
m_singleton = this;
}
}
|