Merge "Add debug for b/7094175." into jb-mr1-dev

This commit is contained in:
Craig Mautner
2012-09-19 13:07:53 -07:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 0 deletions

View File

@@ -1554,6 +1554,8 @@ public class Resources {
public static void updateSystemConfiguration(Configuration config, DisplayMetrics metrics,
CompatibilityInfo compat) {
if (mSystem != null) {
// TODO: Remove once b/7094175 is fixed
Slog.v(TAG, "updateSystemConfiguration: b/7094175 config=" + config);
mSystem.updateConfiguration(config, metrics, compat);
//Log.i(TAG, "Updated system resources " + mSystem
// + ": " + mSystem.getConfiguration());

View File

@@ -26,6 +26,7 @@ import android.graphics.PixelFormat;
import android.os.IBinder;
import android.os.SystemProperties;
import android.util.Log;
import android.util.Slog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -165,6 +166,9 @@ public class KeyguardViewManager {
if (mKeyguardView != null) {
mKeyguardHost.removeView(mKeyguardView);
}
// TODO: Remove once b/7094175 is fixed
Slog.d(TAG, "inflateKeyguardView: b/7094175 mContext.config="
+ mContext.getResources().getConfiguration());
final LayoutInflater inflater = LayoutInflater.from(mContext);
View view = inflater.inflate(R.layout.keyguard_host_view, mKeyguardHost, true);
mKeyguardView = (KeyguardHostView) view.findViewById(R.id.keyguard_host_view);