Search in sources :

Example 1 with LockscreenShortcutsHelper

use of com.android.systemui.cm.LockscreenShortcutsHelper in project android_frameworks_base by crdroidandroid.

the class KeyguardBottomAreaView method onFinishInflate.

@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    mLockPatternUtils = new LockPatternUtils(mContext);
    mPreviewContainer = (ViewGroup) findViewById(R.id.preview_container);
    mCameraImageView = (KeyguardAffordanceView) findViewById(R.id.camera_button);
    mLeftAffordanceView = (KeyguardAffordanceView) findViewById(R.id.left_button);
    mLockIcon = (LockIcon) findViewById(R.id.lock_icon);
    mIndicationText = (TextView) findViewById(R.id.keyguard_indication_text);
    mShortcutHelper = new LockscreenShortcutsHelper(mContext, this);
    watchForCameraPolicyChanges();
    updateCameraVisibility();
    updateLeftButtonVisibility();
    mUnlockMethodCache = UnlockMethodCache.getInstance(getContext());
    mUnlockMethodCache.addListener(this);
    mLockIcon.update();
    setClipChildren(false);
    setClipToPadding(false);
    mPreviewInflater = new PreviewInflater(mContext, new LockPatternUtils(mContext));
    mLockIcon.setOnClickListener(this);
    mLockIcon.setOnLongClickListener(this);
    mCameraImageView.setOnClickListener(this);
    mLeftAffordanceView.setOnClickListener(this);
    initAccessibility();
    updateCustomShortcuts();
}
Also used : PreviewInflater(com.android.systemui.statusbar.policy.PreviewInflater) LockPatternUtils(com.android.internal.widget.LockPatternUtils) LockscreenShortcutsHelper(com.android.systemui.cm.LockscreenShortcutsHelper)

Example 2 with LockscreenShortcutsHelper

use of com.android.systemui.cm.LockscreenShortcutsHelper in project android_frameworks_base by ResurrectionRemix.

the class KeyguardBottomAreaView method onFinishInflate.

@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    mLockPatternUtils = new LockPatternUtils(mContext);
    mPreviewContainer = (ViewGroup) findViewById(R.id.preview_container);
    mCameraImageView = (KeyguardAffordanceView) findViewById(R.id.camera_button);
    mLeftAffordanceView = (KeyguardAffordanceView) findViewById(R.id.left_button);
    mLockIcon = (LockIcon) findViewById(R.id.lock_icon);
    mIndicationText = (TextView) findViewById(R.id.keyguard_indication_text);
    mShortcutHelper = new LockscreenShortcutsHelper(mContext, this);
    watchForCameraPolicyChanges();
    updateCameraVisibility();
    updateLeftButtonVisibility();
    mUnlockMethodCache = UnlockMethodCache.getInstance(getContext());
    mUnlockMethodCache.addListener(this);
    updateCameraIconColor();
    updatePhoneIconColor();
    updateLockIconColor();
    updateIndicationTextColor();
    mLockIcon.update();
    setClipChildren(false);
    setClipToPadding(false);
    mPreviewInflater = new PreviewInflater(mContext, new LockPatternUtils(mContext));
    mLockIcon.setOnClickListener(this);
    mLockIcon.setOnLongClickListener(this);
    mCameraImageView.setOnClickListener(this);
    mLeftAffordanceView.setOnClickListener(this);
    initAccessibility();
    updateCustomShortcuts();
}
Also used : PreviewInflater(com.android.systemui.statusbar.policy.PreviewInflater) LockPatternUtils(com.android.internal.widget.LockPatternUtils) LockscreenShortcutsHelper(com.android.systemui.cm.LockscreenShortcutsHelper)

Aggregations

LockPatternUtils (com.android.internal.widget.LockPatternUtils)2 LockscreenShortcutsHelper (com.android.systemui.cm.LockscreenShortcutsHelper)2 PreviewInflater (com.android.systemui.statusbar.policy.PreviewInflater)2