Loading core/java/android/provider/Settings.java +6 −0 Original line number Diff line number Diff line Loading @@ -2088,6 +2088,12 @@ public final class Settings { */ public static final String LOCKSCREEN_MESSAGING_TAB_APP = "lockscreen_messaging_tab_app"; /** * Sets the lockscreen style * @hide */ public static final String LOCKSCREEN_STYLE_PREF = "lockscreen_style_pref"; /** * Pulse the Trackball with Screen On. The value is boolean (1 or 0). * @hide Loading core/java/com/android/internal/widget/RotarySelector.java +2 −2 Original line number Diff line number Diff line Loading @@ -106,8 +106,8 @@ public class RotarySelector extends View { // Vibration (haptic feedback) private Vibrator mVibrator; private static final long VIBRATE_SHORT = 20; // msec private static final long VIBRATE_LONG = 20; // msec private static final long VIBRATE_SHORT = 30; // msec private static final long VIBRATE_LONG = 40; // msec /** * The drawable for the arrows need to be scrunched this many dips towards the rotary bg below Loading core/res/res/layout/keyguard_screen_tab_unlock.xml +9 −0 Original line number Diff line number Diff line Loading @@ -178,6 +178,15 @@ android:layout_marginBottom="60dip" /> <com.android.internal.widget.RotarySelector android:id="@+id/rotary_selector" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="60dip" /> <!-- emergency call button shown when sim is PUKd and tab_selector is hidden --> <Button Loading core/res/res/layout/keyguard_screen_tab_unlock_land.xml +9 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,15 @@ android:layout_marginRight="60dip" /> <com.android.internal.widget.RotarySelector android:id="@+id/rotary_selector" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentRight="true" android:layout_marginRight="60dip" /> <!-- emergency call button shown when sim is PUKd and tab_selector is hidden --> <Button Loading policy/src/com/android/internal/policy/impl/LockScreen.java +127 −26 Original line number Diff line number Diff line Loading @@ -19,6 +19,8 @@ package com.android.internal.policy.impl; import com.android.internal.R; import com.android.internal.telephony.IccCard; import com.android.internal.widget.LockPatternUtils; import com.android.internal.widget.RotarySelector; import com.android.internal.widget.RotarySelector.OnDialTriggerListener; import com.android.internal.widget.SlidingTab; import com.android.internal.widget.SlidingTab.OnTriggerListener; Loading Loading @@ -59,7 +61,8 @@ import java.net.URISyntaxException; * past it, as applicable. */ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateMonitor.InfoCallback, KeyguardUpdateMonitor.SimStateCallback, SlidingTab.OnTriggerListener, OnGesturePerformedListener{ KeyguardUpdateMonitor.SimStateCallback, SlidingTab.OnTriggerListener, RotarySelector.OnDialTriggerListener, OnGesturePerformedListener{ private static final boolean DBG = false; private static final String TAG = "LockScreen"; Loading @@ -72,8 +75,9 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM private final KeyguardScreenCallback mCallback; private TextView mCarrier; private SlidingTab mSelector; private SlidingTab mTabSelector; private SlidingTab mSelector2; private RotarySelector mRotarySelector; private TextView mTime; private TextView mDate; private TextView mStatus1; Loading Loading @@ -134,6 +138,11 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM private String mMessagingTabApp = (Settings.System.getString(mContext.getContentResolver(), Settings.System.LOCKSCREEN_MESSAGING_TAB_APP)); private int mLockscreenStyle = (Settings.System.getInt(mContext.getContentResolver(), Settings.System.LOCKSCREEN_STYLE_PREF, 1)); private boolean mUseRotaryLockscreen = (mLockscreenStyle == 2); private double mGestureSensitivity; private boolean mGestureTrail; private boolean mGestureActive; Loading Loading @@ -268,9 +277,12 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM mForwardIcon = (ImageButton) findViewById(R.id.musicControlNext); mScreenLocked = (TextView) findViewById(R.id.screenLocked); mSelector = (SlidingTab) findViewById(R.id.tab_selector); mSelector.setHoldAfterTrigger(true, false); mSelector.setLeftHintText(R.string.lockscreen_unlock_label); mRotarySelector = (RotarySelector) findViewById(R.id.rotary_selector); mTabSelector = (SlidingTab) findViewById(R.id.tab_selector); mTabSelector.setHoldAfterTrigger(true, false); mTabSelector.setLeftHintText(R.string.lockscreen_unlock_label); mSelector2 = (SlidingTab) findViewById(R.id.tab_selector2); if (mSelector2 != null) { Loading Loading @@ -343,7 +355,9 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); mSilentMode = isSilentMode(); mSelector.setLeftTabResources( mRotarySelector.setLeftHandleResource(R.drawable.ic_jog_dial_unlock); mTabSelector.setLeftTabResources( R.drawable.ic_jog_dial_unlock, R.drawable.jog_tab_target_green, R.drawable.jog_tab_bar_left_unlock, Loading @@ -351,7 +365,8 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM updateRightTabResources(); mSelector.setOnTriggerListener(this); mRotarySelector.setOnDialTriggerListener(this); mTabSelector.setOnTriggerListener(this); if (mSelector2 != null) { mSelector2.setLeftTabResources(R.drawable.ic_jog_dial_answer, Loading Loading @@ -443,7 +458,11 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM boolean vibe = mSilentMode && (mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE); mSelector.setRightTabResources( mRotarySelector .setRightHandleResource(mSilentMode ? (vibe ? R.drawable.ic_jog_dial_vibrate_on : R.drawable.ic_jog_dial_sound_off) : R.drawable.ic_jog_dial_sound_on); mTabSelector.setRightTabResources( mSilentMode ? ( vibe ? R.drawable.ic_jog_dial_vibrate_on : R.drawable.ic_jog_dial_sound_off ) : R.drawable.ic_jog_dial_sound_on, Loading Loading @@ -522,11 +541,34 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM } } /** {@inheritDoc} */ public void onDialTrigger(View v, int whichHandle) { if (whichHandle == RotarySelector.OnDialTriggerListener.LEFT_HANDLE) { mCallback.goToUnlockScreen(); } else if (whichHandle == RotarySelector.OnDialTriggerListener.RIGHT_HANDLE) { // toggle silent mode toggleSilentMode(); updateRightTabResources(); String message = mSilentMode ? getContext().getString( R.string.global_action_silent_mode_on_status) : getContext().getString( R.string.global_action_silent_mode_off_status); final int toastIcon = mSilentMode ? R.drawable.ic_lock_ringer_off : R.drawable.ic_lock_ringer_on; final int toastColor = mSilentMode ? getContext().getResources().getColor( R.color.keyguard_text_color_soundoff) : getContext().getResources().getColor( R.color.keyguard_text_color_soundon); toastMessage(mScreenLocked, message, toastColor, toastIcon); mCallback.pokeWakelock(); } } /** {@inheritDoc} */ public void onGrabbedStateChange(View v, int grabbedState) { if (grabbedState == SlidingTab.OnTriggerListener.RIGHT_HANDLE) { mSilentMode = isSilentMode(); mSelector.setRightHintText(mSilentMode ? R.string.lockscreen_sound_on_label mTabSelector.setRightHintText(mSilentMode ? R.string.lockscreen_sound_on_label : R.string.lockscreen_sound_off_label); } mCallback.pokeWakelock(); Loading Loading @@ -750,12 +792,23 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.VISIBLE); if (mUseRotaryLockscreen) { mRotarySelector.setVisibility(View.VISIBLE); mTabSelector.setVisibility(View.GONE); if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } } else { mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.VISIBLE); if (mSelector2 != null) { if (mLockPhoneMessagingTab) { mSelector2.setVisibility(View.VISIBLE); } else { mSelector2.setVisibility(View.GONE); } } } mEmergencyCallText.setVisibility(View.GONE); break; case NetworkLocked: Loading @@ -769,12 +822,23 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.VISIBLE); if (mUseRotaryLockscreen) { mRotarySelector.setVisibility(View.VISIBLE); mTabSelector.setVisibility(View.GONE); if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } } else { mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.VISIBLE); if (mSelector2 != null) { if (mLockPhoneMessagingTab) { mSelector2.setVisibility(View.VISIBLE); } else { mSelector2.setVisibility(View.GONE); } } } mEmergencyCallText.setVisibility(View.GONE); break; case SimMissing: Loading @@ -784,8 +848,23 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.VISIBLE); if (mUseRotaryLockscreen) { mRotarySelector.setVisibility(View.VISIBLE); mTabSelector.setVisibility(View.GONE); if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } } else { mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.VISIBLE); if (mSelector2 != null) { if (mLockPhoneMessagingTab) { mSelector2.setVisibility(View.VISIBLE); } else { mSelector2.setVisibility(View.GONE); } } } mEmergencyCallText.setVisibility(View.VISIBLE); // do not need to show the e-call button; user may unlock break; Loading @@ -799,8 +878,11 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.GONE); // cannot unlock mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.GONE); // cannot unlock if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } mEmergencyCallText.setVisibility(View.VISIBLE); mEmergencyCallButton.setVisibility(View.VISIBLE); break; Loading @@ -813,8 +895,23 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.INVISIBLE); mSelector.setVisibility(View.VISIBLE); if (mUseRotaryLockscreen) { mRotarySelector.setVisibility(View.VISIBLE); mTabSelector.setVisibility(View.GONE); if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } } else { mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.VISIBLE); if (mSelector2 != null) { if (mLockPhoneMessagingTab) { mSelector2.setVisibility(View.VISIBLE); } else { mSelector2.setVisibility(View.GONE); } } } mEmergencyCallText.setVisibility(View.GONE); break; case SimPukLocked: Loading @@ -827,14 +924,18 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.GONE); // cannot unlock mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.GONE); // cannot unlock if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } mEmergencyCallText.setVisibility(View.VISIBLE); mEmergencyCallButton.setVisibility(View.VISIBLE); break; } if (mHideUnlockTab) { mSelector.setVisibility(View.GONE); mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.GONE); } } Loading Loading
core/java/android/provider/Settings.java +6 −0 Original line number Diff line number Diff line Loading @@ -2088,6 +2088,12 @@ public final class Settings { */ public static final String LOCKSCREEN_MESSAGING_TAB_APP = "lockscreen_messaging_tab_app"; /** * Sets the lockscreen style * @hide */ public static final String LOCKSCREEN_STYLE_PREF = "lockscreen_style_pref"; /** * Pulse the Trackball with Screen On. The value is boolean (1 or 0). * @hide Loading
core/java/com/android/internal/widget/RotarySelector.java +2 −2 Original line number Diff line number Diff line Loading @@ -106,8 +106,8 @@ public class RotarySelector extends View { // Vibration (haptic feedback) private Vibrator mVibrator; private static final long VIBRATE_SHORT = 20; // msec private static final long VIBRATE_LONG = 20; // msec private static final long VIBRATE_SHORT = 30; // msec private static final long VIBRATE_LONG = 40; // msec /** * The drawable for the arrows need to be scrunched this many dips towards the rotary bg below Loading
core/res/res/layout/keyguard_screen_tab_unlock.xml +9 −0 Original line number Diff line number Diff line Loading @@ -178,6 +178,15 @@ android:layout_marginBottom="60dip" /> <com.android.internal.widget.RotarySelector android:id="@+id/rotary_selector" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="60dip" /> <!-- emergency call button shown when sim is PUKd and tab_selector is hidden --> <Button Loading
core/res/res/layout/keyguard_screen_tab_unlock_land.xml +9 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,15 @@ android:layout_marginRight="60dip" /> <com.android.internal.widget.RotarySelector android:id="@+id/rotary_selector" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentRight="true" android:layout_marginRight="60dip" /> <!-- emergency call button shown when sim is PUKd and tab_selector is hidden --> <Button Loading
policy/src/com/android/internal/policy/impl/LockScreen.java +127 −26 Original line number Diff line number Diff line Loading @@ -19,6 +19,8 @@ package com.android.internal.policy.impl; import com.android.internal.R; import com.android.internal.telephony.IccCard; import com.android.internal.widget.LockPatternUtils; import com.android.internal.widget.RotarySelector; import com.android.internal.widget.RotarySelector.OnDialTriggerListener; import com.android.internal.widget.SlidingTab; import com.android.internal.widget.SlidingTab.OnTriggerListener; Loading Loading @@ -59,7 +61,8 @@ import java.net.URISyntaxException; * past it, as applicable. */ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateMonitor.InfoCallback, KeyguardUpdateMonitor.SimStateCallback, SlidingTab.OnTriggerListener, OnGesturePerformedListener{ KeyguardUpdateMonitor.SimStateCallback, SlidingTab.OnTriggerListener, RotarySelector.OnDialTriggerListener, OnGesturePerformedListener{ private static final boolean DBG = false; private static final String TAG = "LockScreen"; Loading @@ -72,8 +75,9 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM private final KeyguardScreenCallback mCallback; private TextView mCarrier; private SlidingTab mSelector; private SlidingTab mTabSelector; private SlidingTab mSelector2; private RotarySelector mRotarySelector; private TextView mTime; private TextView mDate; private TextView mStatus1; Loading Loading @@ -134,6 +138,11 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM private String mMessagingTabApp = (Settings.System.getString(mContext.getContentResolver(), Settings.System.LOCKSCREEN_MESSAGING_TAB_APP)); private int mLockscreenStyle = (Settings.System.getInt(mContext.getContentResolver(), Settings.System.LOCKSCREEN_STYLE_PREF, 1)); private boolean mUseRotaryLockscreen = (mLockscreenStyle == 2); private double mGestureSensitivity; private boolean mGestureTrail; private boolean mGestureActive; Loading Loading @@ -268,9 +277,12 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM mForwardIcon = (ImageButton) findViewById(R.id.musicControlNext); mScreenLocked = (TextView) findViewById(R.id.screenLocked); mSelector = (SlidingTab) findViewById(R.id.tab_selector); mSelector.setHoldAfterTrigger(true, false); mSelector.setLeftHintText(R.string.lockscreen_unlock_label); mRotarySelector = (RotarySelector) findViewById(R.id.rotary_selector); mTabSelector = (SlidingTab) findViewById(R.id.tab_selector); mTabSelector.setHoldAfterTrigger(true, false); mTabSelector.setLeftHintText(R.string.lockscreen_unlock_label); mSelector2 = (SlidingTab) findViewById(R.id.tab_selector2); if (mSelector2 != null) { Loading Loading @@ -343,7 +355,9 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); mSilentMode = isSilentMode(); mSelector.setLeftTabResources( mRotarySelector.setLeftHandleResource(R.drawable.ic_jog_dial_unlock); mTabSelector.setLeftTabResources( R.drawable.ic_jog_dial_unlock, R.drawable.jog_tab_target_green, R.drawable.jog_tab_bar_left_unlock, Loading @@ -351,7 +365,8 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM updateRightTabResources(); mSelector.setOnTriggerListener(this); mRotarySelector.setOnDialTriggerListener(this); mTabSelector.setOnTriggerListener(this); if (mSelector2 != null) { mSelector2.setLeftTabResources(R.drawable.ic_jog_dial_answer, Loading Loading @@ -443,7 +458,11 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM boolean vibe = mSilentMode && (mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE); mSelector.setRightTabResources( mRotarySelector .setRightHandleResource(mSilentMode ? (vibe ? R.drawable.ic_jog_dial_vibrate_on : R.drawable.ic_jog_dial_sound_off) : R.drawable.ic_jog_dial_sound_on); mTabSelector.setRightTabResources( mSilentMode ? ( vibe ? R.drawable.ic_jog_dial_vibrate_on : R.drawable.ic_jog_dial_sound_off ) : R.drawable.ic_jog_dial_sound_on, Loading Loading @@ -522,11 +541,34 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM } } /** {@inheritDoc} */ public void onDialTrigger(View v, int whichHandle) { if (whichHandle == RotarySelector.OnDialTriggerListener.LEFT_HANDLE) { mCallback.goToUnlockScreen(); } else if (whichHandle == RotarySelector.OnDialTriggerListener.RIGHT_HANDLE) { // toggle silent mode toggleSilentMode(); updateRightTabResources(); String message = mSilentMode ? getContext().getString( R.string.global_action_silent_mode_on_status) : getContext().getString( R.string.global_action_silent_mode_off_status); final int toastIcon = mSilentMode ? R.drawable.ic_lock_ringer_off : R.drawable.ic_lock_ringer_on; final int toastColor = mSilentMode ? getContext().getResources().getColor( R.color.keyguard_text_color_soundoff) : getContext().getResources().getColor( R.color.keyguard_text_color_soundon); toastMessage(mScreenLocked, message, toastColor, toastIcon); mCallback.pokeWakelock(); } } /** {@inheritDoc} */ public void onGrabbedStateChange(View v, int grabbedState) { if (grabbedState == SlidingTab.OnTriggerListener.RIGHT_HANDLE) { mSilentMode = isSilentMode(); mSelector.setRightHintText(mSilentMode ? R.string.lockscreen_sound_on_label mTabSelector.setRightHintText(mSilentMode ? R.string.lockscreen_sound_on_label : R.string.lockscreen_sound_off_label); } mCallback.pokeWakelock(); Loading Loading @@ -750,12 +792,23 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.VISIBLE); if (mUseRotaryLockscreen) { mRotarySelector.setVisibility(View.VISIBLE); mTabSelector.setVisibility(View.GONE); if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } } else { mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.VISIBLE); if (mSelector2 != null) { if (mLockPhoneMessagingTab) { mSelector2.setVisibility(View.VISIBLE); } else { mSelector2.setVisibility(View.GONE); } } } mEmergencyCallText.setVisibility(View.GONE); break; case NetworkLocked: Loading @@ -769,12 +822,23 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.VISIBLE); if (mUseRotaryLockscreen) { mRotarySelector.setVisibility(View.VISIBLE); mTabSelector.setVisibility(View.GONE); if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } } else { mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.VISIBLE); if (mSelector2 != null) { if (mLockPhoneMessagingTab) { mSelector2.setVisibility(View.VISIBLE); } else { mSelector2.setVisibility(View.GONE); } } } mEmergencyCallText.setVisibility(View.GONE); break; case SimMissing: Loading @@ -784,8 +848,23 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.VISIBLE); if (mUseRotaryLockscreen) { mRotarySelector.setVisibility(View.VISIBLE); mTabSelector.setVisibility(View.GONE); if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } } else { mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.VISIBLE); if (mSelector2 != null) { if (mLockPhoneMessagingTab) { mSelector2.setVisibility(View.VISIBLE); } else { mSelector2.setVisibility(View.GONE); } } } mEmergencyCallText.setVisibility(View.VISIBLE); // do not need to show the e-call button; user may unlock break; Loading @@ -799,8 +878,11 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.GONE); // cannot unlock mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.GONE); // cannot unlock if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } mEmergencyCallText.setVisibility(View.VISIBLE); mEmergencyCallButton.setVisibility(View.VISIBLE); break; Loading @@ -813,8 +895,23 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.INVISIBLE); mSelector.setVisibility(View.VISIBLE); if (mUseRotaryLockscreen) { mRotarySelector.setVisibility(View.VISIBLE); mTabSelector.setVisibility(View.GONE); if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } } else { mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.VISIBLE); if (mSelector2 != null) { if (mLockPhoneMessagingTab) { mSelector2.setVisibility(View.VISIBLE); } else { mSelector2.setVisibility(View.GONE); } } } mEmergencyCallText.setVisibility(View.GONE); break; case SimPukLocked: Loading @@ -827,14 +924,18 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM // layout mScreenLocked.setVisibility(View.VISIBLE); mSelector.setVisibility(View.GONE); // cannot unlock mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.GONE); // cannot unlock if (mSelector2 != null) { mSelector2.setVisibility(View.GONE); } mEmergencyCallText.setVisibility(View.VISIBLE); mEmergencyCallButton.setVisibility(View.VISIBLE); break; } if (mHideUnlockTab) { mSelector.setVisibility(View.GONE); mRotarySelector.setVisibility(View.GONE); mTabSelector.setVisibility(View.GONE); } } Loading