OSDN Git Service

Do not dismiss the activity if it is being stopped.
authorPatrick Scott <phanna@android.com>
Wed, 7 Apr 2010 19:05:35 +0000 (15:05 -0400)
committerPatrick Scott <phanna@android.com>
Wed, 7 Apr 2010 19:05:35 +0000 (15:05 -0400)
This allows the activity to stick around if another activity
(like calendar alerts) pops up on top.

Bug: 2577091
Change-Id: I46ca5596f96e05184b64cc9a73b4e1e9a33f1561

src/com/android/deskclock/AlarmAlertFullScreen.java

index 643b3ad..56fc177 100644 (file)
@@ -239,15 +239,6 @@ public class AlarmAlertFullScreen extends Activity {
     }
 
     @Override
-    protected void onStop() {
-        super.onStop();
-        if (!isFinishing()) {
-            // Don't hang around.
-            finish();
-        }
-    }
-    
-    @Override
     public void onDestroy() {
         super.onDestroy();
         if (Log.LOGV) Log.v("AlarmAlert.onDestroy()");