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

Commit 94390715 authored by Tej Singh's avatar Tej Singh Committed by Automerger Merge Worker
Browse files

Merge "Retry pullfinish with empty payload if call fails" into rvc-dev am: 273c839a

Change-Id: I4b7396428d3e4ad94891a94f328002caab6c5419
parents 03265c0f 273c839a
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -561,7 +561,15 @@ public final class StatsManager {
                    try {
                    try {
                        resultReceiver.pullFinished(atomTag, success, parcels);
                        resultReceiver.pullFinished(atomTag, success, parcels);
                    } catch (RemoteException e) {
                    } catch (RemoteException e) {
                        Log.w(TAG, "StatsPullResultReceiver failed for tag " + mAtomId);
                        Log.w(TAG, "StatsPullResultReceiver failed for tag " + mAtomId
                                + " due to TransactionTooLarge. Calling pullFinish with no data");
                        StatsEventParcel[] emptyData = new StatsEventParcel[0];
                        try {
                            resultReceiver.pullFinished(atomTag, /*success=*/false, emptyData);
                        } catch (RemoteException nestedException) {
                            Log.w(TAG, "StatsPullResultReceiver failed for tag " + mAtomId
                                    + " with empty payload");
                        }
                    }
                    }
                });
                });
            } finally {
            } finally {