You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
The @WindowFeature annotation create requestWindowFeature(x) in the init_() function even if the activity use the support library (instead of using supportRequestWindowFeature(x))
Ok why not. I Find out how to do it.
However, I have an issue. supportRequestWindowFeature is from ActionBarActivity and not from FragmentActivity and unfortunately there is no appcompat-v7 library on Maven central, only the v4 support library. So I can't make a
Any clues ?
This is not a problem at all. It means we cannot test it in the functional test, but we can in the compile-time test (by adding a fake ActionBarActivity). You can generate arbitrary code. :) Check out this test, which adds Fragment to the classpath. The added classes must be in src/test/resources, like this.
If you have further questions, do not hesitate to ask..
Activity
WonderCsabo commentedon Jun 10, 2015
Good catch! Wanna contribute?
camillebeaumont commentedon Jun 10, 2015
Ok why not. I Find out how to do it.
However, I have an issue.
supportRequestWindowFeatureis fromActionBarActivityand not fromFragmentActivityand unfortunately there is no appcompat-v7 library on Maven central, only the v4 support library. So I can't make aAny clues ?
WonderCsabo commentedon Jun 10, 2015
This is not a problem at all. It means we cannot test it in the functional test, but we can in the compile-time test (by adding a fake
ActionBarActivity). You can generate arbitrary code. :) Check out this test, which addsFragmentto the classpath. The added classes must be in src/test/resources, like this.If you have further questions, do not hesitate to ask..
WonderCsabo commentedon Jun 10, 2015
BTW, you also have to check
AppCompatActivity, sinceActionBarActivityis deprecated, and the former took it's place.camillebeaumont commentedon Jun 10, 2015
Yes, of course ! I think of this minute ;)
WonderCsabo commentedon Jun 15, 2015
@camillebeaumont did you manage to make progress on this one?
WonderCsabo commentedon Sep 12, 2015
Implemented.