marmistrz / QDict

This is an open source Android dictionary application which support 'stardict' format dictionaries.
https://namndev.github.io/2015-05-13-qdict/
29 stars 8 forks source link

Fix gradle lint #8

Closed marmistrz closed 3 years ago

marmistrz commented 3 years ago

Currently, lint reports the following issues:

  Errors found:

  /home/marcin/proj/android/QDict/qDict/src/main/java/com/mmt/app/SystemBarTintManager.java:104: Error: Expected resource of type styleable [ResourceType]
                  mNavBarAvailable = a.getBoolean(1, false);
                                                  ~
  /home/marcin/proj/android/QDict/qDict/src/main/java/com/mmt/widget/DragSortListView.java:2805: Error: Call requires API level 21 (current min is 17): android.widget.AbsListView#setSelectionFromTop [NewApi]
              setSelectionFromTop(movePos, top - padTop);
              ~~~~~~~~~~~~~~~~~~~
  /home/marcin/proj/android/QDict/qDict/src/main/java/com/annie/dictionary/standout/StandOutWindow.java:583: Error: Must be one or more of: PendingIntent.FLAG_ONE_SHOT, PendingIntent.FLAG_NO_CREATE, PendingIntent.FLAG_CANCEL_CURRENT, PendingIntent.FLAG_UPDATE_CURRENT, PendingIntent.FLAG_IMMUTABLE, Intent.FILL_IN_ACTION, Intent.FILL_IN_DATA, Intent.FILL_IN_CATEGORIES, Intent.FILL_IN_COMPONENT, Intent.FILL_IN_PACKAGE, Intent.FILL_IN_SOURCE_BOUNDS, Intent.FILL_IN_SELECTOR, Intent.FILL_IN_CLIP_DATA [WrongConstant]
                      Intent.FLAG_ACTIVITY_NEW_TASK);
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~