@Override
 public void onResume() {
   super.onResume();
   // If the editor was previously paused and the current orientation is landscape,
   // hide the actionbar because the keyboard is going to appear (even if it was hidden
   // prior to being paused).
   mWebView.setWebViewClient(new LeaWebViewClient());
   if (mEditorWasPaused
       && (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE)
       && !getResources().getBoolean(R.bool.is_large_tablet_landscape)) {
     mIsKeyboardOpen = true;
     mHideActionBarOnSoftKeyboardUp = true;
     hideActionBarIfNeeded();
   }
 }