Skip to content

Commit

Permalink
minor tweaks: correct typo, remove progress bar title (looks nicer wi…
Browse files Browse the repository at this point in the history
…thout)
  • Loading branch information
Steven Soneff authored and Steven Soneff committed May 22, 2010
1 parent 2dd8869 commit 4b98183
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion facebook/src/com/facebook/android/Facebook.java
Expand Up @@ -290,7 +290,7 @@ public void dialog(Context context,

/**
* Generate a UI dialog for the request action in the given Android
* context with the providedparameters.
* context with the provided parameters.
*
* Note that this method is asynchronous and the callback will be invoked
* in the original calling thread (not in a background thread).
Expand Down
4 changes: 2 additions & 2 deletions facebook/src/com/facebook/android/FbDialog.java
Expand Up @@ -49,6 +49,8 @@ public FbDialog(Context context, String url, DialogListener listener) {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mSpinner = new ProgressDialog(getContext());
mSpinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
mSpinner.setMessage("Loading...");
mWebView = new WebView(getContext());
mWebView.setWebViewClient(new FbDialog.FbWebViewClient());
mWebView.getSettings().setJavaScriptEnabled(true);
Expand Down Expand Up @@ -92,8 +94,6 @@ public void onReceivedError(WebView view, int errorCode,
public void onPageStarted(WebView view, String url, Bitmap favicon) {
Log.d("Facebook-WebView", "Webview loading URL: " + url);
super.onPageStarted(view, url, favicon);
mSpinner.setTitle("Facebook");
mSpinner.setMessage("Loading...");
mSpinner.show();
}

Expand Down

0 comments on commit 4b98183

Please sign in to comment.