Fix asynchronous problems in Trusted Device in CarSettings

This change will fix:
(1) Settings will be closed if we call goBack in ActivityResultCallBack.
(2) Settings crash when call goBack when the fragment is starting, add postOnMainThread control will solve the concurrency issue.

Bug: 128913807
Test: Build and flash, Robolectric test
Change-Id: Ic40cb8563fefc0181181edb8bae1d4955ebda831
(cherry picked from commit 76dd680cf6ed0811f37e61622c81866a0dc36031)
10 files changed
tree: a80141ee50ac48780178bee341f9d414ecd2321b
  1. res/
  2. src/
  3. tests/
  4. Android.mk
  5. AndroidManifest.xml
  6. PREUPLOAD.cfg