add some lint fixes, bump minimum SDK version to froyo
This commit is contained in:
parent
5ff5f84562
commit
c13dd67f43
@ -4,7 +4,7 @@
|
|||||||
android:versionCode="72"
|
android:versionCode="72"
|
||||||
android:versionName="0.5.7" >
|
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.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
|
@ -12,6 +12,7 @@ import org.jsoup.nodes.Document;
|
|||||||
import org.jsoup.nodes.Element;
|
import org.jsoup.nodes.Element;
|
||||||
import org.jsoup.select.Elements;
|
import org.jsoup.select.Elements;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@ -73,6 +74,7 @@ public class ArticleFragment extends Fragment {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("NewApi")
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
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")) {
|
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
|
||||||
cssOverride = "body { background : transparent; color : #e0e0e0}";
|
cssOverride = "body { background : transparent; color : #e0e0e0}";
|
||||||
//view.setBackgroundColor(android.R.color.black);
|
//view.setBackgroundColor(android.R.color.black);
|
||||||
web.setBackgroundColor(android.R.color.transparent);
|
web.setBackgroundColor(getResources().getColor(android.R.color.transparent));
|
||||||
} else {
|
} else {
|
||||||
cssOverride = "";
|
cssOverride = "";
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ public class OfflineArticleFragment extends Fragment {
|
|||||||
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}";
|
||||||
//view.setBackgroundColor(android.R.color.black);
|
//view.setBackgroundColor(android.R.color.black);
|
||||||
web.setBackgroundColor(android.R.color.transparent);
|
web.setBackgroundColor(getResources().getColor(android.R.color.transparent));
|
||||||
} else {
|
} else {
|
||||||
cssOverride = "";
|
cssOverride = "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user