Skip to content

Commit

Permalink
Updated ViewSiteActivity and WebViewActivity to use support toolbar w…
Browse files Browse the repository at this point in the history
…/o drawer
  • Loading branch information
nbradbury committed Mar 31, 2015
1 parent d2cfae7 commit d8522a9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.wordpress.android.util.helpers;

import android.app.Activity;
import android.text.TextUtils;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
Expand All @@ -26,7 +27,10 @@ public WPWebChromeClient(Activity activity,
}

public void onProgressChanged(WebView webView, int progress) {
if (mActivity != null && !mActivity.isFinishing() && mAutoUpdateActivityTitle) {
if (mActivity != null
&& !mActivity.isFinishing()
&& mAutoUpdateActivityTitle
&& !TextUtils.isEmpty(webView.getTitle())) {
mActivity.setTitle(webView.getTitle());
}
if (mProgressBar != null) {
Expand Down

0 comments on commit d8522a9

Please sign in to comment.