app/src/main/java/com/example/overcomerpc/moviesconnect/MainActivity.java
private String ClickItem(int item){
        String sorting;
        switch (item){
            case R.id.sort_popular:
                sorting = Constants.SORT_POPULAR;
                break;
            case R.id.sort_toprated:
                sorting = Constants.SORT_TOPRATED;
                break;
            default:
                sorting = Constants.SORT_POPULAR;
                break;
        }
        return sorting;
    }
// Method for handling the setting's sort choice
Method for handling the setting's sort choice
Method for handling the setting ' s sort choice
private String ClickItem(int item){
        String sorting;
        switch (item){
            case R.id.sort_popular:
                sorting = Constants.SORT_POPULAR;
                break;
            case R.id.sort_toprated:
                sorting = Constants.SORT_TOPRATED;
                break;
            default:
                sorting = Constants.SORT_POPULAR;
                break;
        }
        return sorting;
    }
private String ClickItem ( int item ) { String sorting ; switch ( item ) { case R . id . sort_popular : sorting = Constants . SORT_POPULAR ; break ; case R . id . sort_toprated : sorting = Constants . SORT_TOPRATED ; break ; default : sorting = Constants . SORT_POPULAR ; break ; } return sorting ; }
Method for handling the setting's sort choice
Method for handling the setting ' s sort choice