On Android API 22 when I try to call getBoolean on android.support.v4.app.Fragment's arguments it results in a compile time error. However if I get Arguments in a variable first, it works as it's supposed to. Any idea what am I missing?

On Android API 22 when I try to call getBoolean on android.support.v4.app.Fragment's arguments it results in a compile time error. However if I get Arguments in a variable first, it works as it's supposed to. Any idea what am I missing?

 
    
    Those methods were moved to BaseBundle, from which Bundle inherits. You can call getBoolean() and setBoolean() on a Bundle just as you did before.
