viewporter icon indicating copy to clipboard operation
viewporter copied to clipboard

Wrong profile applied for Samsung Galaxy S2

Open PJhimself opened this issue 13 years ago • 2 comments

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.

PJhimself avatar Mar 28 '12 09:03 PJhimself

@pbakaus any feedback on this one? still relevant?

swernerx avatar May 21 '12 12:05 swernerx

Not sure - wasn't able to test this. Can you try testing this on one of the Android devices in your possession?

pbakaus avatar May 21 '12 16:05 pbakaus