Program: 153355
Project: 153355
Buggy source:
private void init(){
  setContentView(R.layout.activity_search);
  title=(HomeTitle)findViewById(R.id.Titlebar);
  title.setTitle(R.string.default_string_search);
  searchInputBar=(MainSearchInputBar)findViewById(R.id.main_search_input_bar);
  String i=getIntent().getStringExtra(KEYWORD);
  if (i != null) {
    searchInputBar.setText(i);
    searchInputBar.setKeyboardState(true);
    searchInputBar.showKeyboard();
  }
  tabHost=(RoundTabHost)getTabHost();
  tabHost.setOnTabChangedListener(new OnTabChangeListener(){
    @Override public void onTabChanged(    String str){
      int index=getTabHost().getCurrentTab();
      now=index;
      Searchable searchable=(Searchable)getCurrentActivity();
      if (index == STORE) {
        searchInputBar.changeSearchType(MainSearchInputBar.STORE,searchable);
      }
 else       if (index == POST) {
        searchInputBar.changeSearchType(MainSearchInputBar.POST,searchable);
      }
 else       if (index == USER) {
        searchInputBar.changeSearchType(MainSearchInputBar.USER,searchable);
      }
    }
  }
);
  Intent storeSearchIntent=new Intent(this,StoreSearchActivity.class);
  Intent postSearchIntent=new Intent(this,PostSearchActivity.class);
  Intent userSearchIntent=new Intent(this,UserSearchActivity.class);
  tabHost.addLeftTab("String_Node_Str",R.string.default_string_store,storeSearchIntent);
  tabHost.addCenterTab("String_Node_Str",R.string.default_string_post,postSearchIntent);
  tabHost.addRightTab("String_Node_Str",R.string.default_string_user,userSearchIntent);
  contentWrapper=(RelativeLayoutThatDetectsSoftKeyboard)findViewById(R.id.activity_search);
  contentWrapper.setBackgroundColor(MatjiConstants.color(R.color.matji_white));
  contentWrapper.setListener(this);
  searchInputBar.setSearchView((FrameLayout)findViewById(R.id.search_wrapper));
  tabHost.setCurrentTab(getIntent().getIntExtra(PAGE,STORE));
  title.setVisibility(View.GONE);
}

Fixed version (ground truth):
private void init(){
  setContentView(R.layout.activity_search);
  title=(HomeTitle)findViewById(R.id.Titlebar);
  title.setTitle(R.string.default_string_search);
  searchInputBar=(MainSearchInputBar)findViewById(R.id.main_search_input_bar);
  String keyword=getIntent().getStringExtra(KEYWORD);
  if (keyword != null) {
    searchInputBar.setText(keyword);
    searchInputBar.showKeyboard();
  }
  tabHost=(RoundTabHost)getTabHost();
  tabHost.setOnTabChangedListener(new OnTabChangeListener(){
    @Override public void onTabChanged(    String str){
      int index=getTabHost().getCurrentTab();
      Searchable searchable=(Searchable)getCurrentActivity();
      if (index == STORE) {
        searchInputBar.changeSearchType(MainSearchInputBar.STORE,searchable);
      }
 else       if (index == POST) {
        searchInputBar.changeSearchType(MainSearchInputBar.POST,searchable);
      }
 else       if (index == USER) {
        searchInputBar.changeSearchType(MainSearchInputBar.USER,searchable);
      }
    }
  }
);
  Intent storeSearchIntent=new Intent(this,StoreSearchActivity.class);
  Intent postSearchIntent=new Intent(this,PostSearchActivity.class);
  Intent userSearchIntent=new Intent(this,UserSearchActivity.class);
  tabHost.addLeftTab("String_Node_Str",R.string.default_string_store,storeSearchIntent);
  tabHost.addCenterTab("String_Node_Str",R.string.default_string_post,postSearchIntent);
  tabHost.addRightTab("String_Node_Str",R.string.default_string_user,userSearchIntent);
  contentWrapper=(RelativeLayoutThatDetectsSoftKeyboard)findViewById(R.id.activity_search);
  contentWrapper.setBackgroundColor(MatjiConstants.color(R.color.matji_white));
  contentWrapper.setListener(this);
  searchInputBar.setSearchView((FrameLayout)findViewById(R.id.search_wrapper));
  tabHost.setCurrentTab(getIntent().getIntExtra(PAGE,STORE));
  title.setVisibility(View.GONE);
}