@@ -25,20 +25,6 @@ public class MainActivity extends AppCompatActivity {
2525 private static final String KEY_STATION = "key_station" ;
2626 private static final String KEY_CAMERA = "key_camera" ;
2727
28- private static final int NORTH_AVE = 0 ;
29- private static final int QUEZON_AVE = 1 ;
30- private static final int KAMUNING = 2 ;
31- private static final int CUBAO = 3 ;
32- private static final int SANTOLAN = 4 ;
33- private static final int ORTIGAS = 5 ;
34- private static final int SHAW_BLVD = 6 ;
35- private static final int BONI = 7 ;
36- private static final int GUADALUPE = 8 ;
37- private static final int BUENDIA = 9 ;
38- private static final int AYALA = 10 ;
39- private static final int MAGALLANES = 11 ;
40- private static final int TAFT = 12 ;
41-
4228 @ Nullable
4329 @ Bind (R .id .drawer_layout )
4430 DrawerLayout mDrawerLayout ;
@@ -91,7 +77,7 @@ protected void onCreate(Bundle savedInstanceState) {
9177 ButterKnife .bind (this );
9278
9379 initStrings ();
94- int stationId = NORTH_AVE ;
80+ int stationId = Stations . NORTH_AVE ;
9581 int cameraId = 1 ;
9682
9783 if (savedInstanceState != null ) {
@@ -244,55 +230,55 @@ private void changeStation(final int stationId) {
244230 }
245231
246232 switch (mCurrentStationId ) {
247- case NORTH_AVE :
233+ case Stations . NORTH_AVE :
248234 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
249235 break ;
250236
251- case QUEZON_AVE :
237+ case Stations . QUEZON_AVE :
252238 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
253239 break ;
254240
255- case KAMUNING :
241+ case Stations . KAMUNING :
256242 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
257243 break ;
258244
259- case CUBAO :
245+ case Stations . CUBAO :
260246 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
261247 break ;
262248
263- case SANTOLAN :
249+ case Stations . SANTOLAN :
264250 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
265251 break ;
266252
267- case ORTIGAS :
253+ case Stations . ORTIGAS :
268254 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
269255 break ;
270256
271- case SHAW_BLVD :
257+ case Stations . SHAW_BLVD :
272258 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
273259 break ;
274260
275- case BONI :
261+ case Stations . BONI :
276262 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
277263 break ;
278264
279- case GUADALUPE :
265+ case Stations . GUADALUPE :
280266 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
281267 break ;
282268
283- case BUENDIA :
269+ case Stations . BUENDIA :
284270 updateTextsOfButtons (nbPlatform , ticketing1 , sbPlatform , ticketing2 );
285271 break ;
286272
287- case AYALA :
273+ case Stations . AYALA :
288274 updateTextsOfButtons (nbPlatform , ticketing1 , sbPlatform , ticketing2 );
289275 break ;
290276
291- case MAGALLANES :
277+ case Stations . MAGALLANES :
292278 updateTextsOfButtons (nbPlatform , nbTicketing , sbPlatform , sbTicketing );
293279 break ;
294280
295- case TAFT :
281+ case Stations . TAFT :
296282 updateTextsOfButtons (nbPlatform1 , ticketing1 , nbPlatform2 , ticketing2 );
297283 break ;
298284
0 commit comments