@Override
 protected void onResume() {
   super.onResume();
   if (Config.get().donationEnabled() && BillingProcessor.isIabServiceAvailable(this)) {
     bp = new BillingProcessor(this, Config.get().donationLicenseKey(), this);
   }
 }
 @Override
 protected void onPause() {
   super.onPause();
   if (bp != null) {
     bp.release();
     bp = null;
   }
 }
 @Override
 public void onContentChanged() {
   super.onContentChanged();
   mKeysLabel = (TextView) findViewById(R.id.keys_label);
   mConflictLabel = (TextView) findViewById(R.id.conflict_label);
   mButtonPositive = (Button) findViewById(R.id.button_positive);
   mButtonNegative = (Button) findViewById(R.id.button_negative);
   mButtonNeutral = (Button) findViewById(R.id.button_neutral);
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mKeyboardShortcutHandler = TwidereApplication.getInstance(this).getKeyboardShortcutsHandler();
    setContentView(R.layout.activity_keyboard_shortcut_input);
    setTitle(KeyboardShortcutsHandler.getActionLabel(this, getKeyAction()));

    mButtonPositive.setOnClickListener(this);
    mButtonNegative.setOnClickListener(this);
    mButtonNeutral.setOnClickListener(this);
  }
  @Override
  public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_search);

    mImm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);

    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    recyclerView = (RecyclerView) findViewById(R.id.recyclerview);
    recyclerView.setLayoutManager(new LinearLayoutManager(this));
    adapter = new SearchAdapter(this);
    recyclerView.setAdapter(adapter);
  }
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (bp == null || !bp.handleActivityResult(requestCode, resultCode, data))
     super.onActivityResult(requestCode, resultCode, data);
 }