From 3a6384536bb7c509b7dc5f2f984df5a7c123c1a0 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 7 Aug 2011 00:42:26 +0200 Subject: [PATCH] Fix Issue 562. Download screen is always on --- OsmAnd/res/layout/download_index.xml | 2 +- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/OsmAnd/res/layout/download_index.xml b/OsmAnd/res/layout/download_index.xml index b19bc6194c..c33594544b 100644 --- a/OsmAnd/res/layout/download_index.xml +++ b/OsmAnd/res/layout/download_index.xml @@ -2,7 +2,7 @@ + android:layout_height="fill_parent" android:orientation="vertical" android:keepScreenOn="true"> diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 3704451df8..3cc0b78c0b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -6,9 +6,9 @@ import java.util.List; import net.osmand.Algoritms; import net.osmand.CallbackWithObject; -import net.osmand.GPXUtilities.GPXFileResult; import net.osmand.LogUtil; import net.osmand.Version; +import net.osmand.GPXUtilities.GPXFileResult; import net.osmand.data.MapTileDownloader; import net.osmand.data.MapTileDownloader.DownloadRequest; import net.osmand.data.MapTileDownloader.IMapDownloaderCallback; @@ -28,17 +28,17 @@ import net.osmand.plus.views.OsmandMapTileView; import net.osmand.plus.views.PointLocationLayer; import android.app.Activity; import android.app.AlertDialog; -import android.app.AlertDialog.Builder; import android.app.Dialog; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.ProgressDialog; +import android.app.AlertDialog.Builder; import android.content.ActivityNotFoundException; import android.content.ComponentName; import android.content.DialogInterface; -import android.content.DialogInterface.OnMultiChoiceClickListener; import android.content.Intent; +import android.content.DialogInterface.OnMultiChoiceClickListener; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.graphics.Color; @@ -58,8 +58,6 @@ import android.os.Bundle; import android.os.Environment; import android.os.Handler; import android.os.Message; -import android.os.PowerManager; -import android.os.PowerManager.WakeLock; import android.util.Log; import android.view.KeyEvent; import android.view.Menu; @@ -67,8 +65,8 @@ import android.view.MenuInflater; import android.view.MenuItem; import android.view.MotionEvent; import android.view.View; -import android.view.View.OnClickListener; import android.view.Window; +import android.view.View.OnClickListener; import android.view.animation.AccelerateInterpolator; import android.view.animation.Animation; import android.view.animation.Transformation;