open preferences automatically on first start
This commit is contained in:
parent
3a7273972b
commit
1433cba57f
@ -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="57"
|
android:versionCode="58"
|
||||||
android:versionName="0.4.9" >
|
android:versionName="0.4.10" >
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="7" />
|
<uses-sdk android:minSdkVersion="7" />
|
||||||
|
|
||||||
|
@ -106,7 +106,9 @@ public class ArticleFragment extends Fragment {
|
|||||||
getActivity().getTheme().resolveAttribute(R.attr.linkColor, tv, true);
|
getActivity().getTheme().resolveAttribute(R.attr.linkColor, tv, true);
|
||||||
|
|
||||||
// prevent flicker in ics
|
// prevent flicker in ics
|
||||||
web.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
|
if (android.os.Build.VERSION.SDK_INT >= 11) {
|
||||||
|
web.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
|
||||||
|
}
|
||||||
|
|
||||||
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
|
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
|
||||||
cssOverride = "body { background : transparent; color : #e0e0e0}";
|
cssOverride = "body { background : transparent; color : #e0e0e0}";
|
||||||
|
@ -1685,6 +1685,11 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
|
|
||||||
setLoadingStatus(R.string.login_need_configure, false);
|
setLoadingStatus(R.string.login_need_configure, false);
|
||||||
|
|
||||||
|
// launch preferences
|
||||||
|
Intent intent = new Intent(MainActivity.this,
|
||||||
|
PreferencesActivity.class);
|
||||||
|
startActivityForResult(intent, 0);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
LoginRequest ar = new LoginRequest(getApplicationContext());
|
LoginRequest ar = new LoginRequest(getApplicationContext());
|
||||||
|
@ -110,7 +110,9 @@ public class OfflineArticleFragment extends Fragment {
|
|||||||
getActivity().getTheme().resolveAttribute(R.attr.linkColor, tv, true);
|
getActivity().getTheme().resolveAttribute(R.attr.linkColor, tv, true);
|
||||||
|
|
||||||
// prevent flicker in ics
|
// prevent flicker in ics
|
||||||
web.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
|
if (android.os.Build.VERSION.SDK_INT >= 11) {
|
||||||
|
web.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
|
||||||
|
}
|
||||||
|
|
||||||
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
|
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
|
||||||
cssOverride = "body { background : transparent; color : #e0e0e0}";
|
cssOverride = "body { background : transparent; color : #e0e0e0}";
|
||||||
|
Loading…
Reference in New Issue
Block a user