版权声明:本文为xing_star原创文章,转载请注明出处!
完美解决google nexus设备全面屏主题crash问题
前面有一篇文章,记录了我在app升级到targetSdk 27中,出现的bug,文章位于 http://javaexception.com/archives/184 。
在我的app中,设置的全屏主题样式如下:
@android:color/transparent
@android:color/transparent
true
true
To anyone else who stumbles upon this “fix” I had to set false and also had to set false before it would work.
按照这个说法,需要调整下全屏的主题样式,修改后的结果是
@android:color/transparent
@android:color/transparent
true
false
false
到此终于完美的解决问题。修改样式后,app的targetSdk是27以及以上,都不会再导致google nexus系列的设备crash。