Buggy code:
private private TextView mChosenAnswer ; private Drawable [ ] mDefaultButtonDrawable ; private LinearLayout mProgressBars ; private View mSessionYesBar ; private View mSessionProgressBar ; private TextView mNext1 ; private TextView mNext2 ; private TextView mNext3 ; private TextView mNext4 ; private Button mFlipCard ; private EditText mAnswerField ; private Button mEase1 ; private Button mEase2 ; private Button mEase3 ; private Button mEase4 ; private Chronometer mCardTimer ; private Whiteboard mWhiteboard ; private ClipboardManager mClipboard ; private ProgressDialog mProgressDialog ; private Card mCurrentCard ; private int mCurrentEase ; private long mSessionTimeLimit ; private int mSessionCurrReps ; private float mScaleInPercent ; private boolean mShowWhiteboard = false ; private int mNextTimeTextColor ; private int mNextTimeTextRecomColor ; private int mForegroundColor ; private boolean mChangeBorderStyle ; private int mButtonHeight = 0 ; private boolean mConfigurationChanged = false ; private int mShowChosenAnswerLength = 2000 ; private boolean mShowCongrats = false ; private int mStatisticBarsMax ; private int mStatisticBarsHeight ; private long mSavedTimer = 0 ; private boolean mRefreshWebview = false ; private File [ ] mCustomFontFiles ; private String mCustomDefaultFontCss ; private SensorManager mSensorManager ; private float mAccel ; private float mAccelCurrent ; private float mAccelLast ; private GestureDetector gestureDetector ; OnTouchListener gestureListener ; private int mGestureSwipeUp ; private int mGestureSwipeDown ; private int mGestureSwipeLeft ; private int mGestureSwipeRight ; private int mGestureShake ; private int mGestureDoubleTap ; private int mGestureTapLeft ; private int mGestureTapRight ; private int mGestureTapTop ; private int mGestureTapBottom ; private int mGestureLongclick ; private static final int GESTURE_NOTHING = 0 ; private static final int GESTURE_ANSWER_EASE1 = 1 ; private static final int GESTURE_ANSWER_EASE2 = 2 ; private static final int GESTURE_ANSWER_EASE3 = 3 ; private static final int GESTURE_ANSWER_EASE4 = 4 ; private static final int GESTURE_ANSWER_RECOMMENDED = 5 ; private static final int GESTURE_ANSWER_BETTER_THAN_RECOMMENDED = 6 ; private static final int GESTURE_UNDO = 7 ; private static final int GESTURE_REDO = 8 ; private static final int GESTURE_EDIT = 9 ; private static final int GESTURE_MARK = 10 ; private static final int GESTURE_LOOKUP = 11 ; private static final int GESTURE_BURY = 12 ; private static final int GESTURE_SUSPEND = 13 ; private static final int GESTURE_DELETE = 14 ; private static final int GESTURE_CLEAR_WHITEBOARD = 15 ; private static final int GESTURE_EXIT = 16 ; private String mCardContent ; private String mBaseUrl ; private static final int ANIMATION_NO_ANIMATION = 0 ; private static final int ANIMATION_TURN = 1 ; private static final int ANIMATION_NEXT_CARD_FROM_RIGHT = 2 ; private static final int ANIMATION_NEXT_CARD_FROM_LEFT = 3 ; private static final int ANIMATION_SLIDE_OUT_TO_LEFT = 4 ; private static final int ANIMATION_SLIDE_OUT_TO_RIGHT = 5 ; private static final int ANIMATION_SLIDE_IN_FROM_RIGHT = 6 ; private static final int ANIMATION_SLIDE_IN_FROM_LEFT = 7 ; private int mNextAnimation = 0 ; private int mAnimationDurationTurn = 500 ; private int mAnimationDurationMove = 500 ; private int mFadeDuration = 300 ; private Method mSetScrollbarBarFading = null ; protected JoystickToButtonAdapter adapter ; private String comparedFieldAnswer = null ; private String comparedFieldClass = null ; private final SensorEventListener mSensorListener = new SensorEventListener ( ) { public void onSensorChanged ( SensorEvent se ) { } public void onAccuracyChanged ( Sensor sensor , int accuracy ) { } } ; private Handler mHandler = new Handler ( ) { @ Override public void handleMessage ( Message msg ) { } } ; private final Handler longClickHandler = new Handler ( ) ; private final Runnable longClickTestRunnable = new Runnable ( ) { public void run ( ) { } } ; private final Runnable startLongClickAction = new Runnable ( ) { public void run ( ) { } } ; private OnClickListener mCardStatisticsListener = new View . OnClickListener ( ) { @ Override public void onClick ( View view ) { } } ; private OnClickListener mFlipCardListener = new View . OnClickListener ( ) { @ Override public void onClick ( View view ) { } } ; private OnClickListener mSelectEaseHandler = new View . OnClickListener ( ) { @ Override public void onClick ( View view ) { } } ; private OnTouchListener mGestureListener = new View . OnTouchListener ( ) { @ Override public boolean onTouch ( View v , MotionEvent event ) { } } ; private OnLongClickListener mLongClickListener = new View . OnLongClickListener ( ) { @ Override public boolean onLongClick ( View view ) { } } ; private TaskListener mMarkCardHandler = new DeckTask . TaskListener ( ) { @ Override public void onPreExecute ( ) { } @ Override public void onProgressUpdate ( DeckTask ... values ) { } @ Override public void onPostExecute ( DeckTask . TaskData result ) { } } ; private TaskListener mDismissCardHandler = new DeckTask . TaskListener ( ) { boolean mSessionComplete ; boolean mNoMoreCards ; @ Override public void onPreExecute ( ) { } @ Override public void onProgressUpdate ( DeckTask ... values ) { } @ Override public void onPostExecute ( DeckTask . TaskData result ) { } } ; private TaskListener mUpdateCardHandler = new DeckTask . TaskListener ( ) { @ Override public void onPreExecute ( ) { } @ Override public void onProgressUpdate ( DeckTask ... values ) { } @ Override public void onPostExecute ( DeckTask . TaskData result ) { } } ; private TaskListener mAnswerCardHandler = new DeckTask . TaskListener ( ) { private boolean mSessionComplete ; private boolean mNoMoreCards ; @ Override public void onPreExecute ( ) { } @ Override public void onProgressUpdate ( DeckTask ... values ) { } @ Override public void onPostExecute ( DeckTask . TaskData result ) { } } ; TaskListener mSaveAndResetDeckHandler = new DeckTask . TaskListener ( ) { @ Override public void onPreExecute ( ) { } @ Override public void onPostExecute ( DeckTask . TaskData result ) { } @ Override public void onProgressUpdate ( DeckTask ... values ) { } } ; private Handler mTimerHandler = new Handler ( ) ; private Runnable removeChosenAnswerText = new Runnable ( ) { public void run ( ) { } } ; Handler ZeemoteHandler = new Handler ( ) { public void handleMessage ( Message msg ) { } } ; private int mWaitAnswerSecond ; private int mWaitQuestionSecond ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onPause ( ) { } @ Override protected void onResume ( ) { } @ Override protected void onStop ( ) { } @ Override protected void onDestroy ( ) { } @ Override public boolean onKeyDown ( int keyCode , KeyEvent event ) { } @ Override public void onConfigurationChanged ( Configuration newConfig ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } private void updateBigWidget ( boolean showProgressDialog ) { } private boolean clipboardHasText ( ) { } private void clipboardSetText ( CharSequence text ) { } private CharSequence clipboardGetText ( ) { } @ Override public boolean onPrepareOptionsMenu ( Menu menu ) { } @ Override public void onOptionsMenuClosed ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { } private boolean isCramming ( ) { } private void registerExternalStorageListener ( ) { } private void stopTimer ( ) { } private void restartTimer ( ) { } private void setLanguage ( String language ) { Locale locale ; if ( language . equals ( "" ) ) { <START_BUG> return ; <END_BUG>

Fix:
locale = Locale . getDefault ( ) ;