Buggy code:
public class MainActivity extends AppCompatActivity implements View . OnClickListener , Spinner . OnItemSelectedListener , BannerHandler , FileDownloadedHandle , LessonHandler , TokenGetter , UpdateHandler { public static Object [ ] weekdays_syllabus_data ; public static String info_about_syllabus ; public static final String USERNAME_FILE = "username.txt" ; public static final String PASSWORD_FILE = "password.txt" ; public static String syllabus_json_data ; public static String token = "" ; public static String cur_year_string ; public static int cur_semester ; public static String cur_username ; public static String cur_password ; public static int initial_week = - 1 ; public static String initial_date = null ; public static final String TAG = "POSTTEST" ; public static String [ ] YEARS ; public static final String [ ] SEMESTER = new String [ ] { "SPRING" , "SUMMER" , "AUTUMN" } ; public static final String [ ] SEMESTER_CHINESE = new String [ ] { "春季学期" , "夏季学期" , "秋季学期" } ; private int position = - 1 ; private WrapContentHeightViewPager viewPager ; private Spinner year_spinner ; private Spinner semester_spinner ; private Button query_button ; private Button login_wifi_button ; private Button oa_button ; private Button school_activity_button ; private Button logout_button ; private TextView grade_text_view_as_button ; private TextView exam_text_view_as_button ; private EditText debug_ip_edit ; private boolean has_showed_default = false ; private boolean has_checked_update = false ; private UpdateHelper updateHelper ; private String banner_json_data ; private List < Banner > bannerList ; private List < File > fileList ; private BannerPagerAdapter bannerPagerAdapter ; private boolean hasDisplayed = false ; private boolean autoScroll = true ; private void getOverflowMenu ( ) { } @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onResume ( ) { } public void onPause ( ) { } private void getAllViews ( ) { } private String [ ] load_saved_user ( ) { } private boolean has_saved_user ( ) { } private void setupViews ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private boolean delete_default_syllabus ( ) { } private void load_default_syllabus ( ) { } private void set_cur_semester_with_spinner ( int selection_id ) { } private boolean set_week_info ( final String json_data , final boolean update_local_token ) { 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 ) ; numberPicker . setValue ( 1 ) ; 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 ( MainActivity . cur_username , MainActivity . cur_year_string , ( ( MainActivity . cur_semester ) + "" ) ) ; if ( FileOperation . save_to_file ( MainActivity . this , filename , content ) ) { Toast . makeText ( MainActivity . this , ( "设定当前周数为<seq2seq4repair_space>" + week ) , LENGTH_SHORT ) . show ( ) ; MainActivity . initial_week = week ; MainActivity . initial_date = date_string ; } else { Toast . makeText ( MainActivity . this , "设置周数出错" , LENGTH_SHORT ) . show ( ) ; } parse_and_display ( json_data , update_local_token ) ; dialog . dismiss ( ) ; } } ) ; builder . setCancelable ( false ) ; builder . create ( ) . show ( ) ; return true ; } private String [ ] get_week_info ( ) { } private void submit_query_request ( int year_index , int semester_spinner_index ) { } private void check_update ( ) { } @ Override public void deal_with_update ( int flag , final SyllabusVersion version ) { } @ Override public void deal_with_lessons ( String raw_data ) { } private void parse_and_display ( String json_data , boolean update_local_token ) { } @ Override public void onClick ( View v ) { } private void query_syllabus ( ) { } @ Override public void get_token ( String token ) { } public void get_local_token ( ) { } public static void set_local_token ( Context use_for_file_context ) { } @ Override public void onItemSelected ( AdapterView < ? > parent , View view , int position , long id ) { } @ Override public void onNothingSelected ( AdapterView < ? > parent ) { } private void auto_scroll ( ) { } private boolean isBannersCached ( ) { } private void getLatestBannerInfo ( ) { } private void display_banners ( List < File > files ) { } @ Override public void handle_downloaded_file ( List < File > files ) { } private void set_banners ( ) { } private List < File > loadCachedBannerFile ( String directory , List < String > filenames ) { } @ Override public void handle_get_response ( String result ) { } }

Fix:
builder . setTitle ( "设定当前周数(目前按照周一作为第一天)" ) ;