czlucius / code-scanner

An Android app to scan and generate codes(barcodes/QR codes)
GNU Affero General Public License v3.0
40 stars 25 forks source link

Intent persists after screen rotate, relaunching fragment. #6

Closed czlucius closed 3 years ago

czlucius commented 3 years ago

When an intent is shared with the app (images, text), the intent persists throughout the lifecycle of the app, hence relaunching the action on every screen rotate.

Video of the bug:

https://user-images.githubusercontent.com/58442255/121296823-dcc70180-c923-11eb-8c80-a22ca0c49007.mp4

This bug is caused by setIntent not properly clearing the intent, hence the activity uses the intent in the next launch.