Program: 146488
Project: 146488
Buggy source:
/** 
 * Called when the activity is first created.
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  AppRater.app_launched(this);
  BitmapDrawable bg=(BitmapDrawable)getResources().getDrawable(R.drawable.bg_striped);
  bg.setTileModeXY(Shader.TileMode.REPEAT,Shader.TileMode.REPEAT);
  ActionBar actionBar=getActionBar();
  if (actionBar != null) {
    actionBar.setBackgroundDrawable(bg);
  }
  final SharedPreferences sharedPreferences=PreferenceManager.getDefaultSharedPreferences(this);
  boolean newDashboardNotificationShown=sharedPreferences.getBoolean(NEW_DASHBOARD_NOTIFICATION_SHOWN_KEY,false);
  if (!newDashboardNotificationShown) {
    new AlertDialog.Builder(this).setNeutralButton("String_Node_Str",new DialogInterface.OnClickListener(){
      @Override public void onClick(      DialogInterface dialog,      int which){
        SharedPreferences.Editor editor=sharedPreferences.edit();
        editor.putBoolean(NEW_DASHBOARD_NOTIFICATION_SHOWN_KEY,true);
        editor.commit();
      }
    }
).setTitle("String_Node_Str").setMessage("String_Node_Str" + "String_Node_Str" + "String_Node_Str").show();
  }
  alarmSet=sharedPreferences.getBoolean("String_Node_Str",false);
  if (alarmSet) {
    setRecurringAlarm(sharedPreferences.getLong("String_Node_Str",30000));
  }
  mDrawerListItems=getResources().getStringArray(R.array.NavSections);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  FrameLayout contentFrame=(FrameLayout)findViewById(R.id.content_frame);
  mDrawerList=(ListView)findViewById(R.id.left_drawer);
  mDrawerList.setAdapter(new ArrayAdapter<>(this,R.layout.drawer_list_item,mDrawerListItems));
  mDrawerList.setOnItemClickListener(new DrawerItemClickListener());
  mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow,Gravity.START);
  if (((ViewGroup.MarginLayoutParams)contentFrame.getLayoutParams()).leftMargin == (int)getResources().getDimension(R.dimen.drawer_size)) {
    mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_OPEN,mDrawerList);
    mDrawerLayout.setScrimColor(Color.TRANSPARENT);
    mDrawerLayout.setFocusableInTouchMode(false);
    isDrawerLocked=true;
  }
  app=new App(this);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,R.drawable.ic_drawer,R.string.app_name,R.string.app_name){
    public void onDrawerClosed(    View view){
      invalidateOptionsMenu();
    }
    public void onDrawerOpened(    View drawerView){
      invalidateOptionsMenu();
    }
  }
;
  if (!isDrawerLocked) {
    mDrawerLayout.setDrawerListener(mDrawerToggle);
    getActionBar().setDisplayHomeAsUpEnabled(true);
    getActionBar().setHomeButtonEnabled(true);
  }
  if (savedInstanceState == null) {
    displayItem(0);
  }
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created.
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  AppRater.app_launched(this);
  BitmapDrawable bg=(BitmapDrawable)getResources().getDrawable(R.drawable.bg_striped);
  bg.setTileModeXY(Shader.TileMode.REPEAT,Shader.TileMode.REPEAT);
  ActionBar actionBar=getActionBar();
  if (actionBar != null) {
    actionBar.setBackgroundDrawable(bg);
  }
  final SharedPreferences sharedPreferences=PreferenceManager.getDefaultSharedPreferences(this);
  sharedPreferences.registerOnSharedPreferenceChangeListener(this);
  onVersionUpdate(sharedPreferences);
  alarmSet=sharedPreferences.getBoolean(SettingsFragment.KEY_CHECK_ENABLED,true);
  if (alarmSet) {
    setRecurringAlarm(Integer.parseInt(sharedPreferences.getString(SettingsFragment.KEY_CHECK_PERIOD,"String_Node_Str")));
  }
  mDrawerListItems=getResources().getStringArray(R.array.NavSections);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  FrameLayout contentFrame=(FrameLayout)findViewById(R.id.content_frame);
  mDrawerList=(ListView)findViewById(R.id.left_drawer);
  mDrawerList.setAdapter(new ArrayAdapter<>(this,R.layout.drawer_list_item,mDrawerListItems));
  mDrawerList.setOnItemClickListener(new DrawerItemClickListener());
  mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow,Gravity.START);
  if (((ViewGroup.MarginLayoutParams)contentFrame.getLayoutParams()).leftMargin == (int)getResources().getDimension(R.dimen.drawer_size)) {
    mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_OPEN,mDrawerList);
    mDrawerLayout.setScrimColor(Color.TRANSPARENT);
    mDrawerLayout.setFocusableInTouchMode(false);
    isDrawerLocked=true;
  }
  app=new App(this);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,R.drawable.ic_drawer,R.string.app_name,R.string.app_name){
    public void onDrawerClosed(    View view){
      invalidateOptionsMenu();
    }
    public void onDrawerOpened(    View drawerView){
      invalidateOptionsMenu();
    }
  }
;
  if (!isDrawerLocked) {
    mDrawerLayout.setDrawerListener(mDrawerToggle);
    getActionBar().setDisplayHomeAsUpEnabled(true);
    getActionBar().setHomeButtonEnabled(true);
  }
  if (savedInstanceState == null) {
    displayItem(0);
  }
}