From e92b84374fc779a3e5bff1c3dfd115cf48672030 Mon Sep 17 00:00:00 2001 From: Zhongyi Tong Date: Fri, 27 Jan 2017 15:13:02 +0800 Subject: [PATCH] Fix missing WebView. --- .idea/misc.xml | 2 +- app/app.iml | 19 ++++++++++--------- app/build.gradle | 2 +- .../hongbao/activities/MainActivity.java | 13 +++++-------- .../hongbao/activities/WebViewActivity.java | 11 ----------- app/src/main/res/layout/activity_webview.xml | 15 +++++---------- 6 files changed, 22 insertions(+), 40 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index edc9f35b..8ce21776 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -27,7 +27,7 @@ - + diff --git a/app/app.iml b/app/app.iml index 1bcbfe3f..3b6f6f90 100644 --- a/app/app.iml +++ b/app/app.iml @@ -66,14 +66,6 @@ - - - - - - - - @@ -82,8 +74,17 @@ + + + + + + + + + @@ -106,7 +107,6 @@ - @@ -131,6 +131,7 @@ + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 6c06075e..d5fcf545 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,7 +6,7 @@ android { useLibrary 'org.apache.http.legacy' defaultConfig { applicationId "xyz.monkeytong.hongbao" - minSdkVersion 21 + minSdkVersion 19 targetSdkVersion 25 versionCode 4 versionName "v3.0.1" diff --git a/app/src/main/java/xyz/monkeytong/hongbao/activities/MainActivity.java b/app/src/main/java/xyz/monkeytong/hongbao/activities/MainActivity.java index 054e7f39..3c1776e7 100644 --- a/app/src/main/java/xyz/monkeytong/hongbao/activities/MainActivity.java +++ b/app/src/main/java/xyz/monkeytong/hongbao/activities/MainActivity.java @@ -13,18 +13,15 @@ import android.view.Window; import android.view.WindowManager; import android.view.accessibility.AccessibilityManager; -import android.widget.*; - -import java.util.List; - -import com.google.android.gms.ads.AdRequest; -import com.google.android.gms.ads.AdView; +import android.widget.ImageView; +import android.widget.TextView; +import android.widget.Toast; +import com.tencent.bugly.Bugly; import xyz.monkeytong.hongbao.R; import xyz.monkeytong.hongbao.utils.ConnectivityUtil; import xyz.monkeytong.hongbao.utils.UpdateTask; -import com.tencent.bugly.Bugly; -import com.tencent.bugly.crashreport.CrashReport; +import java.util.List; public class MainActivity extends Activity implements AccessibilityManager.AccessibilityStateChangeListener { diff --git a/app/src/main/java/xyz/monkeytong/hongbao/activities/WebViewActivity.java b/app/src/main/java/xyz/monkeytong/hongbao/activities/WebViewActivity.java index 695ed534..976ca02e 100644 --- a/app/src/main/java/xyz/monkeytong/hongbao/activities/WebViewActivity.java +++ b/app/src/main/java/xyz/monkeytong/hongbao/activities/WebViewActivity.java @@ -2,17 +2,10 @@ import android.annotation.TargetApi; import android.app.Activity; -import android.app.DownloadManager; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; -import android.os.Environment; -import android.preference.Preference; -import android.preference.PreferenceActivity; -import android.preference.PreferenceManager; -import android.provider.Settings; -import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.Window; @@ -21,14 +14,10 @@ import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; -import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; -import com.google.android.gms.ads.AdRequest; -import com.google.android.gms.ads.AdView; import xyz.monkeytong.hongbao.R; import xyz.monkeytong.hongbao.utils.DownloadUtil; -import xyz.monkeytong.hongbao.utils.UpdateTask; /** * Created by Zhongyi on 1/19/16. diff --git a/app/src/main/res/layout/activity_webview.xml b/app/src/main/res/layout/activity_webview.xml index cfd91802..99f65d30 100644 --- a/app/src/main/res/layout/activity_webview.xml +++ b/app/src/main/res/layout/activity_webview.xml @@ -2,7 +2,6 @@ @@ -40,13 +39,9 @@ android:src="@mipmap/ic_open_in_browser" android:layout_alignParentRight="true" android:layout_marginLeft="8dp" android:padding="8dp"/> - - - - +