Warning appears in a rotation

Bug #541793 reported by Edouard Richard
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Tomdroid
Fix Released
Low
Olivier Bilodeau

Bug Description

After rotation, the warning message apprears because Oncreate() is called again.

Revision history for this message
Edouard Richard (vied12) wrote :

It work when I add static to the variable warningShown,
like "private static boolean warningShown = false;"

and
"android:configChanges="orientation"
in the manifest in the activity section

Revision history for this message
Olivier Bilodeau (plaxx) wrote :

Thanks for the report! I was able to reproduce on my ADP1 with your instructions.

I will try your fix suggestion and report back here.

Changed in tomdroid:
assignee: nobody → Olivier Bilodeau (plaxx)
importance: Undecided → Low
milestone: none → 0.4
status: New → Confirmed
Revision history for this message
Edouard Richard (vied12) wrote : Re: [Bug 541793] Re: Warning appears in a rotation

I can remove error messages with the onDestroy method like it :
http://bazaar.launchpad.net/~vied12/tomdroid/voiceNote/revision/188

(Always using 'static' for the warningShown variable)

Revision history for this message
Olivier Bilodeau (plaxx) wrote :

The behavior changed, the dialog is now showed only once (status saved in preferences). It has the side effect of fixing that issue. Code committed in lp:tomdroid, it will be released in 0.4.

Changed in tomdroid:
status: Confirmed → Fix Committed
Revision history for this message
Olivier Bilodeau (plaxx) wrote :

fix released in 0.4.0

Changed in tomdroid:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.