viewporter
viewporter copied to clipboard
Wrong profile applied for Samsung Galaxy S2
At the moment, there is only one profile for Samsung Galaxy S, S2 and Nexus S. I've one S2 and that profile didn't work for me, the function postProcess was never called, because the match against the device profile was never succesful.
I checked out the values of my device and created a separate profile for it.
A general problem was the difference between the height with and without location bar. At my S2, it took a long time until the bar was hidden, at some other device it was instantly hidden. I'm of the opinion that it would be better to check both.
// Samsung Galaxy S and Nexus S
'GT-I9000|Nexus S': {
portrait: 508,
landscape: 295
},
// Samsung Galaxy S2
'GT-I9100': {
portrait: 338, // 381 without location bar..
landscape: 178 // 221 without location bar..
},
PS: Maybe, this profile is also not working for the Nexus S or Galaxy S, but I couldn't check their values.
@pbakaus any feedback on this one? still relevant?
Not sure - wasn't able to test this. Can you try testing this on one of the Android devices in your possession?