Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7.0
-
None
-
Cordova 2.7 (upgraded from 2.5), Android 2.2 - 4.1.2
Description
I've been using a 9patch splashscreen image since cordova 1.9, and it's been working until now (cordova 2.5).
After upgrading to 2.7, any image I try to set as splashscreen appears to be zoomed at least 2x, maybe more.
I've tried with different 9patches, simple images, specific dpi images, and even a bitmap xml descriptor which is accepted by android. None of them worked, all with the same problem.
As I follow closely cordova commits and changelogs, all I know is that it's related to this commit: https://github.com/apache/cordova-android/commit/ba314246047501c36916604facb5e097572771e4
I haven't found any discussion that leads to that commit, so I can't say anything as to why this change was made.
An example is attached. Just change cordova*.js/jar from 2.7 to 2.5(or 2.6) to see the difference.
As a side note, I realized that simply specifying the 'splashscreen' preference in config.xml was not enough, and I had to put the code on the java class too to make it even recognize the splash setting. However, this is not an 2.7 issue, as I have seen it before on 2.5.