Inspectopedia Help

Using Wrong AppCompat Method

Using Wrong AppCompat Method

When using the appcompat library, there are some methods you should be calling instead of the normal ones; for example, getSupportActionBar() instead of getActionBar(). This lint check looks for calls to the wrong method.

Issue id: AppCompatMethod

https://developer.android.com/topic/libraries/support-library/

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3

Plugin:

Android, 2022.3.1 Beta 2

Last modified: 13 July 2023