@Override
  public void onCreate(Bundle savedInstanceState) {
    mShouldRetainInstance = false;
    super.onCreate(savedInstanceState);
    initTitles(getString(R.string.virtual_remote));
    mHttpHelper.showToastOnSimpleResult(false);

    SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getAppCompatActivity());
    mQuickZap =
        getArguments()
            .getBoolean(
                DreamDroid.PREFS_KEY_QUICKZAP,
                prefs.getBoolean(DreamDroid.PREFS_KEY_QUICKZAP, false));
    mSimpleRemote = DreamDroid.getCurrentProfile().isSimpleRemote();
    mVibrator = (Vibrator) getAppCompatActivity().getSystemService(Context.VIBRATOR_SERVICE);
    mHandler = new Handler();
  }
 @Override
 public void onPause() {
   abortScreenshotReload();
   super.onPause();
 }