I'm building an app that has plenty of screens. most of the screens have a View at the top with a background color.
I often change that color using view.setBackgroundColor(color)
Here comes the weird thing: sometimes after setting the color of one view, say to #f14fb7 , when navigating in the app, other views' backgrounds are set to that color without me wanting them to. It sometimes even happens to views I had not set an id for, so there is no way setBackgroundColor was called on those views.
This happens rarely and is not consistant to any flow I tried.
When I kill the app and restart it, everything works as it should.
My only guess is some king of memory leak, but I hope there is a simpler explanation.
Can anyone think of some reason for this to happen?
*It happens on my Galaxy S3.