зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1219075 - Enable Android lockscreen for b2gdroid r=fabrice
This commit is contained in:
Родитель
04b3ac88e7
Коммит
0bcd7f502e
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче