Fix for 2129239: Always enable the menu hard key in LockScreen when 'ro.monkey' is set.
BUG=2129239 DRNO=discussed with hiroshi/mcleron who gave thumbs up.
This commit is contained in:
@@ -30,6 +30,8 @@ import android.widget.*;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.Log;
|
||||
import android.media.AudioManager;
|
||||
import android.os.SystemProperties;
|
||||
|
||||
import com.android.internal.telephony.IccCard;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -151,7 +153,8 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM
|
||||
mCallback = callback;
|
||||
|
||||
mDisableMenuKeyInLockScreen = getResources()
|
||||
.getBoolean(R.bool.config_disableMenuKeyInLockScreen);
|
||||
.getBoolean(R.bool.config_disableMenuKeyInLockScreen)
|
||||
&& !SystemProperties.getBoolean("ro.monkey", false);
|
||||
|
||||
mCreatedInPortrait = updateMonitor.isInPortrait();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user