open preferences automatically on first start

This commit is contained in:
Andrew Dolgov 2012-02-03 09:22:15 +03:00
parent 3a7273972b
commit 1433cba57f
4 changed files with 13 additions and 4 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="57"
android:versionName="0.4.9" >
android:versionCode="58"
android:versionName="0.4.10" >
<uses-sdk android:minSdkVersion="7" />

View File

@ -106,7 +106,9 @@ public class ArticleFragment extends Fragment {
getActivity().getTheme().resolveAttribute(R.attr.linkColor, tv, true);
// 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")) {
cssOverride = "body { background : transparent; color : #e0e0e0}";

View File

@ -1685,6 +1685,11 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
setLoadingStatus(R.string.login_need_configure, false);
// launch preferences
Intent intent = new Intent(MainActivity.this,
PreferencesActivity.class);
startActivityForResult(intent, 0);
} else {
LoginRequest ar = new LoginRequest(getApplicationContext());

View File

@ -110,7 +110,9 @@ public class OfflineArticleFragment extends Fragment {
getActivity().getTheme().resolveAttribute(R.attr.linkColor, tv, true);
// 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")) {
cssOverride = "body { background : transparent; color : #e0e0e0}";