add some lint fixes, bump minimum SDK version to froyo

This commit is contained in:
Andrew Dolgov 2012-05-02 09:54:45 +04:00
parent 5ff5f84562
commit c13dd67f43
3 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,7 @@
android:versionCode="72"
android:versionName="0.5.7" >
<uses-sdk android:minSdkVersion="7" />
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

View File

@ -12,6 +12,7 @@ import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
@ -73,6 +74,7 @@ public class ArticleFragment extends Fragment {
}
@SuppressLint("NewApi")
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
@ -141,7 +143,7 @@ public class ArticleFragment extends Fragment {
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
cssOverride = "body { background : transparent; color : #e0e0e0}";
//view.setBackgroundColor(android.R.color.black);
web.setBackgroundColor(android.R.color.transparent);
web.setBackgroundColor(getResources().getColor(android.R.color.transparent));
} else {
cssOverride = "";
}

View File

@ -131,7 +131,7 @@ public class OfflineArticleFragment extends Fragment {
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
cssOverride = "body { background : transparent; color : #e0e0e0}";
//view.setBackgroundColor(android.R.color.black);
web.setBackgroundColor(android.R.color.transparent);
web.setBackgroundColor(getResources().getColor(android.R.color.transparent));
} else {
cssOverride = "";
}