fix orientation crashes in offlineactivity, bump version
This commit is contained in:
parent
cbabbf099f
commit
803afcc6d2
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.fox.ttrss"
|
package="org.fox.ttrss"
|
||||||
android:versionCode="37"
|
android:versionCode="38"
|
||||||
android:versionName="0.3.4" >
|
android:versionName="0.3.5" >
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="4" />
|
<uses-sdk android:minSdkVersion="4" />
|
||||||
|
|
||||||
|
@ -386,6 +386,8 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
initDatabase();
|
||||||
|
|
||||||
m_prefs = PreferenceManager
|
m_prefs = PreferenceManager
|
||||||
.getDefaultSharedPreferences(getApplicationContext());
|
.getDefaultSharedPreferences(getApplicationContext());
|
||||||
|
|
||||||
@ -433,8 +435,6 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
|
|
||||||
setContentView(R.layout.main);
|
setContentView(R.layout.main);
|
||||||
|
|
||||||
initDatabase();
|
|
||||||
|
|
||||||
IntentFilter filter = new IntentFilter();
|
IntentFilter filter = new IntentFilter();
|
||||||
filter.addAction(OfflineDownloadService.INTENT_ACTION_SUCCESS);
|
filter.addAction(OfflineDownloadService.INTENT_ACTION_SUCCESS);
|
||||||
filter.addAction(OfflineUploadService.INTENT_ACTION_SUCCESS);
|
filter.addAction(OfflineUploadService.INTENT_ACTION_SUCCESS);
|
||||||
|
@ -54,6 +54,8 @@ public class OfflineActivity extends FragmentActivity implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
initDatabase();
|
||||||
|
|
||||||
m_prefs = PreferenceManager
|
m_prefs = PreferenceManager
|
||||||
.getDefaultSharedPreferences(getApplicationContext());
|
.getDefaultSharedPreferences(getApplicationContext());
|
||||||
|
|
||||||
@ -97,8 +99,6 @@ public class OfflineActivity extends FragmentActivity implements
|
|||||||
|
|
||||||
setContentView(R.layout.main);
|
setContentView(R.layout.main);
|
||||||
|
|
||||||
initDatabase();
|
|
||||||
|
|
||||||
Log.d(TAG, "m_smallScreenMode=" + m_smallScreenMode);
|
Log.d(TAG, "m_smallScreenMode=" + m_smallScreenMode);
|
||||||
Log.d(TAG, "m_compatMode=" + m_compatMode);
|
Log.d(TAG, "m_compatMode=" + m_compatMode);
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ public class OfflineActivity extends FragmentActivity implements
|
|||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
boolean needRefresh = !m_prefs.getString("theme", "THEME_DARK").equals(
|
boolean needRefresh = !m_prefs.getString("theme", "THEME_DARK").equals(
|
||||||
m_themeName)
|
m_themeName)
|
||||||
|| m_prefs.getBoolean("enable_cats", false) != m_enableCats;
|
|| m_prefs.getBoolean("enable_cats", false) != m_enableCats;
|
||||||
|
Loading…
Reference in New Issue
Block a user