Swati4star/Images-to-PDF

View on GitHub
app/src/main/java/swati4star/createpdf/fragment/FavouritesFragment.java

Summary

Maintainability
C
1 day
Test Coverage

Method onClick has 107 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void onClick(View v) {
        Fragment fragment = null;
        FragmentManager fragmentManager = getFragmentManager();
        Bundle bundle = new Bundle();

    File FavouritesFragment.java has 332 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    package swati4star.createpdf.fragment;
    
    import static swati4star.createpdf.util.Constants.ADD_IMAGES;
    import static swati4star.createpdf.util.Constants.ADD_IMAGES_KEY;
    import static swati4star.createpdf.util.Constants.ADD_PASSWORD_KEY;

      Method checkFavourites has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private void checkFavourites(SharedPreferences sharedPreferences) {
      
              // assigned due to onSharedPreferenceChanged
              mSharedpreferences = sharedPreferences;
              viewVisibility(pref_img_to_pdf, IMAGE_TO_PDF_KEY);

        Method initializeValues has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private void initializeValues() {
        
                mDoesFavouritesExist = false;
                checkFavourites(mSharedpreferences);
                mFragmentPositionMap = CommonCodeUtils.getInstance().fillNavigationItemsMap(false);

          There are no issues that match your filters.

          Category
          Status