Bug 1219075 - Enable Android lockscreen for b2gdroid r=fabrice

This commit is contained in:
sgiles 2015-10-28 22:18:09 +00:00
Родитель 04b3ac88e7
Коммит 0bcd7f502e
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -7,7 +7,10 @@ GAIA_PATH := $(if MOZ_B2GDROID,gaia/assets/gaia,gaia/profile)
# For b2gdroid, we disable the screen timeout since this is managed by android.
# We also limit the app set to the production ones.
GAIA_OPTIONS := $(if MOZ_B2GDROID,GAIA_DISTRIBUTION_DIR=distros/b2gdroid,)
GAIA_OPTIONS := $(if MOZ_B2GDROID, \
GAIA_DISTRIBUTION_DIR=distros/b2gdroid \
NO_LOCK_SCREEN=1 \
)
GENERATED_DIRS += $(DIST)/bin/$(GAIA_PATH)

Просмотреть файл

@ -90,11 +90,6 @@ public class Launcher extends FragmentActivity
IntentHelper.init(this);
mScreenStateObserver = new ScreenStateObserver(this);
// Disable the default lockscreen.
KeyguardManager keyguardManager = (KeyguardManager)getSystemService(KEYGUARD_SERVICE);
KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE);
lock.disableKeyguard();
initGecko();
GeckoAppShell.setGeckoInterface(new BaseGeckoInterface(this));