Screen lock times out after 10 minutes

This commit is contained in:
Doug Keen 2013-02-09 13:07:49 -08:00
parent f6efac2af6
commit a3a4ef5dbb

View File

@ -434,6 +434,15 @@ public class ViewDeparturesActivity extends SActivity implements
if (hasFocus) {
getWindow()
.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
if (getWindow() != null)
getWindow().clearFlags(
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}
}, 10 * 60 * 1000);
Ticker.getInstance().startTicking(this);
refreshBoardedDeparture(false);
}