frameworks/base/core/java/android/view/OrientationEventListener.java
Index: OrientationEventListener.java
===================================================================
--- OrientationEventListener.java (revision 8257)
+++ OrientationEventListener.java (revision 8258)
@@ -22,7 +22,7 @@
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.util.Log;
-
+import android.app.ActivityThread;
/**
* Helper class for receiving notifications from the SensorManager when
* the orientation of the device has changed.
@@ -140,6 +140,12 @@
}
if (orientation != mOrientation) {
mOrientation = orientation;
+ //add dengli for QQ video call reverse 90 degrees
+ if(ActivityThread.currentOpPackageName().equalsIgnoreCase("com.tencent.mobileqq")){
+ orientation=orientation+90;
+ }
+ //Log.w(TAG,"dengli orientation="+orientation);
+ //add dengli for QQ video call reverse 90 degrees
onOrientationChanged(orientation);
}
}
public void onAccuracyChanged(Sensor sensor, int accuracy) {
}