diff options
| author | 2009-11-05 13:36:15 -0800 | |
|---|---|---|
| committer | 2009-11-05 15:40:35 -0800 | |
| commit | 471afca7fce7db8dfb4b59d10f9e699a6b951cb5 (patch) | |
| tree | 1d47eb0d2b8e8a791eb76bfe7f434a671204627c | |
| parent | cfe0ef242770a2b4186b4501421365dc667e1c5d (diff) | |
Prevent crash in Home when using widgets whose ids collide with Home's
resources.
Bug #2228943.
Approved by mcleron, triaged by ryanpc.
Change-Id: Idf40f3b09502ae5d0d3b9a6a72c265a2de2ffca2
| -rw-r--r-- | libs/ui/FramebufferNativeWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index c5e22e5645..0efba9c966 100644 --- a/libs/ui/FramebufferNativeWindow.cpp +++ b/libs/ui/FramebufferNativeWindow.cpp @@ -118,6 +118,8 @@ FramebufferNativeWindow::FramebufferNativeWindow() LOGE_IF(err, "fb buffer 1 allocation failed w=%d, h=%d, err=%s", fbDev->width, fbDev->height, strerror(-err)); + LOGE("xDpi %d", fbDev->xdpi); + LOGE("yDpi %d", fbDev->ydpi); const_cast<uint32_t&>(android_native_window_t::flags) = fbDev->flags; const_cast<float&>(android_native_window_t::xdpi) = fbDev->xdpi; const_cast<float&>(android_native_window_t::ydpi) = fbDev->ydpi; |