Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74C4C17C92 for ; Wed, 5 Nov 2014 16:03:35 +0000 (UTC) Received: (qmail 67837 invoked by uid 500); 5 Nov 2014 16:03:35 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 67827 invoked by uid 500); 5 Nov 2014 16:03:35 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 67816 invoked by uid 99); 5 Nov 2014 16:03:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 16:03:34 +0000 Date: Wed, 5 Nov 2014 16:03:33 +0000 (UTC) From: "Andrew Grieve (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-7947) pauseTimers() called too aggressively on Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Andrew Grieve created CB-7947: --------------------------------- Summary: pauseTimers() called too aggressively on Android Key: CB-7947 URL: https://issues.apache.org/jira/browse/CB-7947 Project: Apache Cordova Issue Type: Bug Components: Android Reporter: Andrew Grieve Assignee: Andrew Grieve Priority: Minor ML discussion: http://markmail.org/thread/dhs7lnnrhq6z24vb Couple of issues: 1. pauseTimers(), although an instance method, actually applies to all webviews 2. pauseTimers() is always being called during startActivityForResult(), even though there's no reason to do this. Proposed changes: - Pause timers during a startActivityForResult only when KeepRunning preference is false (this should happen anyways, since the activity's onPause is fired in this case) - 4.0.x branch: Create a setGloballyPauseTimers(boolean) on CordovaWebview interface in 4.0.x that is documented to have the same semantics as WebView.pause/resume timers. - 4.0.x branch: Move the pausing & resuming into CordovaActivity, rather than passing it as a boolean to the onPause() function -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org