Compare commits
No commits in common. '730475b021e1f5e46739394f18de64397aae30e3' and 'db09ca5d7976e10cc57d8dbde0363f27661d638d' have entirely different histories.
730475b021
...
db09ca5d79
@ -1,40 +0,0 @@ |
|||||||
package com.android.base.widget.compat; |
|
||||||
|
|
||||||
import android.annotation.TargetApi; |
|
||||||
import android.content.Context; |
|
||||||
import android.content.res.Configuration; |
|
||||||
import android.os.Build; |
|
||||||
import android.util.AttributeSet; |
|
||||||
import android.webkit.WebView; |
|
||||||
|
|
||||||
/** |
|
||||||
* @see <a href='https://stackoverflow.com/questions/41025200/android-view-inflateexception-error-inflating-class-android-webkit-webview'>android-view-inflateexception-error-inflating-class-android-webkit-webview</a>
|
|
||||||
*/ |
|
||||||
public class LollipopFixedWebView extends WebView { |
|
||||||
|
|
||||||
public LollipopFixedWebView(Context context) { |
|
||||||
super(getFixedContext(context)); |
|
||||||
} |
|
||||||
|
|
||||||
public LollipopFixedWebView(Context context, AttributeSet attrs) { |
|
||||||
super(getFixedContext(context), attrs); |
|
||||||
} |
|
||||||
|
|
||||||
public LollipopFixedWebView(Context context, AttributeSet attrs, int defStyleAttr) { |
|
||||||
super(getFixedContext(context), attrs, defStyleAttr); |
|
||||||
} |
|
||||||
|
|
||||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP) |
|
||||||
public LollipopFixedWebView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { |
|
||||||
super(getFixedContext(context), attrs, defStyleAttr, defStyleRes); |
|
||||||
} |
|
||||||
|
|
||||||
public LollipopFixedWebView(Context context, AttributeSet attrs, int defStyleAttr, boolean privateBrowsing) { |
|
||||||
super(getFixedContext(context), attrs, defStyleAttr, privateBrowsing); |
|
||||||
} |
|
||||||
|
|
||||||
public static Context getFixedContext(Context context) { |
|
||||||
return context.createConfigurationContext(new Configuration()); |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
@ -1,8 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="ExtraTranslation"> |
|
||||||
|
|
||||||
<string name="ucrop_rotate" tools:ignore="PrivateResource">旋转</string> |
|
||||||
<string name="ucrop_scale" tools:ignore="PrivateResource">缩放</string> |
|
||||||
<string name="ucrop_crop" tools:ignore="PrivateResource">裁剪</string> |
|
||||||
|
|
||||||
</resources> |
|
Loading…
Reference in new issue