Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2012-08-11 00:05:10 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:41:40 +0300
commit8c2051a2e94a179a58fd3081f6331d75ecf73649 (patch)
tree2cfb73c79ff1a93bcf867f48e27e82098f81407e /android/src/com/mapswithme/maps/MWMApplication.java
parent094f4a1eae368b951ab5381faa81805b401bc593 (diff)
[android] Replaced WakeLock with more efficient window flags
Diffstat (limited to 'android/src/com/mapswithme/maps/MWMApplication.java')
-rw-r--r--android/src/com/mapswithme/maps/MWMApplication.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/android/src/com/mapswithme/maps/MWMApplication.java b/android/src/com/mapswithme/maps/MWMApplication.java
index 9a82eb6102..8d13f9f4a1 100644
--- a/android/src/com/mapswithme/maps/MWMApplication.java
+++ b/android/src/com/mapswithme/maps/MWMApplication.java
@@ -10,8 +10,6 @@ import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.AssetManager;
import android.os.Build;
import android.os.Environment;
-import android.os.PowerManager;
-import android.os.PowerManager.WakeLock;
import android.util.Log;
import android.widget.Toast;
@@ -164,28 +162,6 @@ public class MWMApplication extends android.app.Application implements MapStorag
return getFilesDir().getAbsolutePath() + "/";
}
- private WakeLock mWakeLock = null;
-
- public void disableAutomaticStandby()
- {
- if (mWakeLock == null)
- {
- PowerManager pm = (PowerManager) getSystemService(android.content.Context.POWER_SERVICE);
- mWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE, TAG);
- mWakeLock.acquire();
- }
- }
-
- public void enableAutomaticStandby()
- {
- if (mWakeLock != null)
- {
- mWakeLock.release();
- mWakeLock = null;
- }
- }
-
-
static
{
System.loadLibrary("mapswithme");