This has been happening for a while now--it's not related to Android Pie--and it's really getting annoying. This morning, while starting my day, I put my phone in my pocket walked downstairs to my charger, pulled my phone out of my pocket and there was TweetCaster (a Twitter app) on my screen asking me if I wanted to Tweet, discard tweet, save as draft, or retweet with comment of the current tweet showing in that app. This is extremely odd because I haven't opened TweetCaster on my phone in weeks.
The sequence of events was:
1. Unlock phone with fingerprint reader
2. Note battery meter was at 45% and my phone needed a charge
3. Soft press power button to turn off phone's screen
4. Put phone in pocket. Walk downstairs to charger.
5. Pull phone out of pocket to see TweetCaster engaged and ready to tweet!
This was a sequence of about 45 seconds to 1 minute.
In the past several months, with phone in my pocket and the screen having been shut off with a soft power button push, I have called people, "composed" text drafts (usually gibberish), had apps opened I didn't have open beforehand, opened the compose windwo in my email app, etc. Because this happens so frequently I ALWAYS soft press the power button to (I assume) shut off the screen and any possible chance of this sort of stuff occurring. The phone is supposed to be locked at this point, requiring my fingerprint or PIN to unlock it, isn't it?
So why does my phone spontaneously take actions while in my pocket?