Checks use of resource IDs in places requiring constants.
../../src/main/java/com/coincollection/CollectionPage.java:399: Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them in switch case statements
396 // Handle item selection
397 switch(item.getItemId()) {
398
399 case R.id.lock_unlock_collection:
400
401 // Need to check the preferences to see whether the collection is locked or unlocked
402 SharedPreferences mainPreferences = getSharedPreferences(MainApplication.PREFS, MODE_PRIVATE);
../../src/main/java/com/coincollection/CollectionPage.java:504: Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them in switch case statements
501
502 return true;
503
504 case R.id.change_view:
505
506 if(mDisplayType == SIMPLE_DISPLAY){
507 // Setup the advanced view
../../src/main/java/com/coincollection/CollectionPage.java:576: Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them in switch case statements
573 // Shouldn't get here
574 return true;
575
576 case R.id.rename_collection:
577
578 // Prompt user for new name via alert dialog
579 showRenamePrompt();
../../src/main/java/com/coincollection/ReorderCollections.java:201: Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them in switch case statements
198 }
199 return true;
200
201 case R.id.save_reordered_collections:
202 MainActivity activity = (MainActivity) getActivity();
203 Resources res = activity.getResources();
Checks use of resource IDs in places requiring constants. ../../src/main/java/com/coincollection/CollectionPage.java:399: Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them in switch case statements 396 // Handle item selection 397 switch(item.getItemId()) { 398 399 case R.id.lock_unlock_collection:
400 401 // Need to check the preferences to see whether the collection is locked or unlocked 402 SharedPreferences mainPreferences = getSharedPreferences(MainApplication.PREFS, MODE_PRIVATE); ../../src/main/java/com/coincollection/CollectionPage.java:504: Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them in switch case statements 501 502 return true; 503 504 case R.id.change_view:
505 506 if(mDisplayType == SIMPLE_DISPLAY){ 507 // Setup the advanced view ../../src/main/java/com/coincollection/CollectionPage.java:576: Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them in switch case statements 573 // Shouldn't get here 574 return true; 575 576 case R.id.rename_collection:
577 578 // Prompt user for new name via alert dialog 579 showRenamePrompt(); ../../src/main/java/com/coincollection/ReorderCollections.java:201: Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them in switch case statements 198 } 199 return true; 200 201 case R.id.save_reordered_collections:
202 MainActivity activity = (MainActivity) getActivity(); 203 Resources res = activity.getResources();