Commit 639fd8fc by Kim Jinsung

文書協業終了時、新しくActivity作成する前にWebViewから何も呼ばれないようにWebViewにBlank画面表示

parent 72945d68
...@@ -826,6 +826,8 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements ...@@ -826,6 +826,8 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
*/ */
public void finishPIPMode() { public void finishPIPMode() {
if (startPIP) { if (startPIP) {
//既存WebViewのページリセットする。
mChatWebView.loadBlank();
Intent intent = new Intent(); Intent intent = new Intent();
intent.setClass(this, ChatWebViewActivity.class); intent.setClass(this, ChatWebViewActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
......
...@@ -549,6 +549,13 @@ public class ChatWebView extends WebView { ...@@ -549,6 +549,13 @@ public class ChatWebView extends WebView {
delegate.chatWebViewNeedsDismissProgressBar(); delegate.chatWebViewNeedsDismissProgressBar();
} }
} }
public void loadBlank() {
post(new Runnable() {
@Override
public void run() {
loadUrl("about:blank");
}
});
public void loadChatViewUrl(final String urlString) { public void loadChatViewUrl(final String urlString) {
post(new Runnable() { post(new Runnable() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment