luckybilly / luckybilly/SmartSwipe
requestWindowFeature 和库冲突
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
super.onCreate(savedInstanceState) 后面调用requestWindowFeature()崩溃
请描述您遇到的问题
Window feature must be requested before adding content
- 预期行为:
不崩溃
- 实际行为:
崩溃 ,应该是这里冲突了 自己写的代码部分还好 ,第三方如果调用了requestWindowFeature就尴尬了 ,大佬看空了能不能修复哈

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Android crash around super.onCreate(savedInstanceState) and requestWindowFeature(), using the Window feature must be requested before adding content message and linked screenshot. Trace the library's activity/content setup and any third-party requestWindowFeature call; done means the reported sequence no longer crashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100