Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0dbb7105 authored by Henry Fang's avatar Henry Fang
Browse files

Change resource claim to sync to avoid resource conflict

bug: 174544018
Test: manual
Change-Id: Ib2688da2a85cdad896f9f2814828ce7659c8a695
Merged-In: Ib2688da2a85cdad896f9f2814828ce7659c8a695
parent ba032abd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -240,6 +240,7 @@ public class Tuner implements AutoCloseable {
                                .write(FrameworkStatsLog.TV_TUNER_STATE_CHANGED, mUserId,
                                    FrameworkStatsLog.TV_TUNER_STATE_CHANGED__STATE__UNKNOWN);
                    }
                    releaseAll();
                    mHandler.sendMessage(mHandler.obtainMessage(MSG_RESOURCE_LOST));
                }
            };
@@ -500,7 +501,6 @@ public class Tuner implements AutoCloseable {
                    break;
                }
                case MSG_RESOURCE_LOST: {
                    releaseAll();
                    if (mOnResourceLostListener != null
                                && mOnResourceLostListenerExecutor != null) {
                        mOnResourceLostListenerExecutor.execute(