Opened 10 years ago

Closed 10 years ago

#736 closed enhancement/feature request (fixed)

Small patch for preventing screen lock in Android

Reported by: sav Owned by: cp15
Priority: minor Milestone: version 0.5.0
Component: port/android Version: git master
Severity: Keywords: screen lock android
Cc:

Description

Tested on LG GT-540 (Android v2.1):

--- navit/android/src/org/navitproject/navit/NavitGraphics.java.orig	2011-01-11 19:46:22.803158999 +0300
+++ navit/android/src/org/navitproject/navit/NavitGraphics.java	2011-01-11 18:55:29.943159000 +0300
@@ -210,6 +210,7 @@
 			};
 			view.setFocusable(true);
 			view.setFocusableInTouchMode(true);
+			view.setKeepScreenOn(true);
 			relativelayout=new RelativeLayout(activity);
 			if (use_camera != 0) {
 				SetCamera(use_camera);

Change History (1)

comment:1 Changed 10 years ago by number6

  • Component changed from gui/internal to port/android
  • Keywords screen lock android added
  • Resolution set to fixed
  • Status changed from new to closed

Added in Revision 3909.

Note: See TracTickets for help on using tickets.