Hi, I met a problem, when I unlock the screen, the activity is
relayouting (E.G  camera activity, settings activity)
I want to the keyguardview don't remove so quickly, just wait this
kind activity drawing complete. anyone have ideas?

I add a thread sleep at hide()@KeyguardViewManager.java

    /**
     * Hides the keyguard view
     */
    public synchronized void hide() {
        if (DEBUG) Log.d(TAG, "hide()");
        if (mKeyguardHost != null) {
            mKeyguardHost.setVisibility(View.GONE);
            // Don't do this right away, so we can let the view
continue to animate
            // as it goes away.
            if (mKeyguardView != null) {
                final KeyguardViewBase lastView = mKeyguardView;

                mKeyguardView = null;
                mKeyguardHost.postDelayed(new Runnable() {
                    public void run() {
                        synchronized (KeyguardViewManager.this) {
                            try {
                                Thread.sleep(1000);
                            } catch (InterruptedException ie) {
                            }
                            mKeyguardHost.removeView(lastView);
                            lastView.cleanUp();
                        }
                    }
                }, 500);
            }
        }
    }

but it didn't work

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to