MCPcopy Create free account
hub / github.com/buggins/coolreader / CoolReader

Class CoolReader

android/src/org/coolreader/CoolReader.java:88–2264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86import android.widget.Toast;
87
88public class CoolReader extends Activity
89{
90 public static final Logger log = L.create("cr");
91
92 Engine mEngine;
93 ReaderView mReaderView;
94 Scanner mScanner;
95 FileBrowser mBrowser;
96 FrameLayout mFrame;
97 //View startupView;
98 History mHistory;
99 CRDB mDB;
100 private BackgroundThread mBackgroundThread;
101
102
103 public CoolReader() {
104 brightnessHackError = false; //DeviceInfo.SAMSUNG_BUTTONS_HIGHLIGHT_PATCH;
105 }
106
107 public Scanner getScanner()
108 {
109 return mScanner;
110 }
111
112 public History getHistory()
113 {
114 return mHistory;
115 }
116
117 public Engine getEngine() {
118 return mEngine;
119 }
120
121 public FileBrowser getBrowser() {
122 return mBrowser;
123 }
124
125 public ReaderView getReaderView()
126 {
127 return mReaderView;
128 }
129
130 public CRDB getDB()
131 {
132 return mDB;
133 }
134
135 private static String PREF_FILE = "CR3LastBook";
136 private static String PREF_LAST_BOOK = "LastBook";
137 public String getLastSuccessfullyOpenedBook()
138 {
139 SharedPreferences pref = getSharedPreferences(PREF_FILE, 0);
140 String res = pref.getString(PREF_LAST_BOOK, null);
141 pref.edit().putString(PREF_LAST_BOOK, null).commit();
142 return res;
143 }
144
145 public void setLastSuccessfullyOpenedBook( String filename )

Callers

nothing calls this directly

Calls 1

createMethod · 0.95

Tested by

no test coverage detected