Switch to KeyguardHostView to reenable clock and multi user switch.

Bug: 13635952
Change-Id: I8996dd55be220637bc028cfedc62583850a538a2
This commit is contained in:
Jorim Jaggi
2014-03-28 23:23:44 +01:00
parent d529e294ae
commit 13b67a9cd5
2 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<include layout="@layout/keyguard_simple_host_view"
<include layout="@layout/keyguard_host_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>

View File

@ -29,6 +29,7 @@ import android.view.ViewTreeObserver;
import com.android.internal.policy.IKeyguardShowCallback;
import com.android.internal.widget.LockPatternUtils;
import com.android.keyguard.KeyguardHostView;
import com.android.keyguard.KeyguardSimpleHostView;
import com.android.keyguard.R;
import com.android.keyguard.ViewMediatorCallback;
@ -49,7 +50,7 @@ public class StatusBarKeyguardViewManager {
private ViewMediatorCallback mViewMediatorCallback;
private PhoneStatusBar mPhoneStatusBar;
private KeyguardSimpleHostView mKeyguardView;
private KeyguardHostView mKeyguardView;
private ViewGroup mRoot;
private ViewGroup mContainer;
private StatusBarWindowManager mStatusBarWindowManager;
@ -102,7 +103,7 @@ public class StatusBarKeyguardViewManager {
private void inflateView() {
removeView();
mRoot = (ViewGroup) LayoutInflater.from(mContext).inflate(R.layout.keyguard_bouncer, null);
mKeyguardView = (KeyguardSimpleHostView) mRoot.findViewById(R.id.keyguard_host_view);
mKeyguardView = (KeyguardHostView) mRoot.findViewById(R.id.keyguard_host_view);
mKeyguardView.setLockPatternUtils(mLockPatternUtils);
mKeyguardView.setViewMediatorCallback(mViewMediatorCallback);
mContainer.addView(mRoot, mContainer.getChildCount());