Buggy code:
public class SyllabusActivity extends AppCompatActivity implements LessonHandler , TokenGetter { public static Lesson clicked_lesson ; public static final String DEFAULT_SYLLABUS_FILE = "default_syllabus" ; public static final String WALL_PAPER_FILE_NAME = "syllabus_wallpaper.jpeg" ; public static final String WALL_PAPER_FILE_TEMP = "temp_pic_file.jpg" ; public static final String COLOR_FILE_NAME = "syllabus_text_color" ; private static final int PICK_PHOTO_FROM_GALLERY = 1 ; private static final int CROP_PHOTO_REQUEST = 2 ; private Bitmap wall_paper ; LinearLayout dayLinearLayout ; LinearLayout timeLinearLayout ; SyncHorizontalScrollView gridScrollView ; SyncHorizontalScrollView dayScrollView ; SyncScrollView classScrollView ; SyncScrollView timeScrollView ; GridLayout myClassTable ; LinearLayout syllabus_bg ; private void setupViews ( ) { } public void showSyllabus ( ) { } private void setActionBarTitle ( String title ) { } private void getOverflowMenu ( ) { } @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onResume ( ) { } public void onPause ( ) { } public void showClassInfo ( Lesson lesson ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private boolean set_week_info ( ) { AlertDialog . Builder builder = new AlertDialog . Builder ( this ) ; <START_BUG> builder . setTitle ( "选择周数" ) ; <END_BUG> final NumberPicker numberPicker = new NumberPicker ( this ) ; numberPicker . setMaxValue ( 16 ) ; numberPicker . setMinValue ( 1 ) ; int this_week = ClassParser . calculate_week ( Calendar . getInstance ( ) ) ; numberPicker . setValue ( this_week ) ; builder . setView ( numberPicker ) ; builder . setPositiveButton ( "设定周数" , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { int week = numberPicker . getValue ( ) ; Calendar calendar = Calendar . getInstance ( ) ; int year = calendar . get ( Calendar . YEAR ) ; int month = calendar . get ( Calendar . MONTH ) ; int day = calendar . get ( Calendar . DAY_OF_MONTH ) ; String date_string = ( ( ( year + "//" ) + month ) + "//" ) + day ; String content = ( date_string + "," ) + week ; String filename = FileOperation . generate_week_file ( cur_username , cur_year_string , ( ( MainActivity . cur_semester ) + "" ) ) ; if ( FileOperation . save_to_file ( SyllabusActivity . this , filename , content ) ) { Toast . makeText ( SyllabusActivity . this , ( "设定当前周数为<seq2seq4repair_space>" + week ) , LENGTH_SHORT ) . show ( ) ; MainActivity . initial_week = week ; MainActivity . initial_date = date_string ; ClassParser parser = new ClassParser ( SyllabusActivity . this , SyllabusActivity . this ) ; parser . parseJSON ( syllabus_json_data , false ) ; parser . inflateTable ( ) ; MainActivity . weekdays_syllabus_data = parser . weekdays_syllabus_data ; setActionBarTitle ( ( ( "第" + week ) + "周" ) ) ; } else { Toast . makeText ( SyllabusActivity . this , "设置周数出错" , LENGTH_SHORT ) . show ( ) ; } showSyllabus ( ) ; dialog . dismiss ( ) ; } } ) ; builder . setNegativeButton ( "仅查看" , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { int week = numberPicker . getValue ( ) ; Calendar calendar = Calendar . getInstance ( ) ; int year = calendar . get ( Calendar . YEAR ) ; int month = calendar . get ( Calendar . MONTH ) ; int day = calendar . get ( Calendar . DAY_OF_MONTH ) ; String date_string = ( ( ( year + "//" ) + month ) + "//" ) + day ; Toast . makeText ( SyllabusActivity . this , ( ( "查看第<seq2seq4repair_space>" + week ) + "<seq2seq4repair_space>周的课表" ) , LENGTH_SHORT ) . show ( ) ; MainActivity . initial_week = week ; MainActivity . initial_date = date_string ; ClassParser parser = new ClassParser ( SyllabusActivity . this , SyllabusActivity . this ) ; parser . parseJSON ( syllabus_json_data , false ) ; parser . inflateTable ( ) ; MainActivity . weekdays_syllabus_data = parser . weekdays_syllabus_data ; setActionBarTitle ( ( ( "第" + week ) + "周" ) ) ; showSyllabus ( ) ; dialog . dismiss ( ) ; } } ) ; builder . create ( ) . show ( ) ; return true ; } private boolean set_default_syllabus ( ) { } private void pick_photo ( ) { } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { } private void load_bitmap ( String file_path ) { } private void set_syllabus_wallpaper ( ) { } private void load_syllabus_wallpaper ( ) { } private void startPhotoZoom ( Uri uri , int width , int height ) { } private void sync_syllabus ( ) { } @ Override public void deal_with_lessons ( String raw_data ) { } @ Override public void get_token ( String token ) { } public void saveSyllabus ( ) { } public Bitmap getViewBitmap ( View v ) { } }

Fix:
builder . setTitle ( "选择周数(目前周一作为第一天)" ) ;