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

Commit 78f774ae authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

Telephony: Remove setResultCode in a non-ordered broadcast



Change-Id: I3dcb787992d5cacd4b1e5028d82dfe87bd7c3684
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent 0cbe0b39
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -1663,14 +1663,8 @@ public abstract class SMSDispatcher extends Handler {
                            AppOpsManager.OP_RECEIVE_SMS);
                            AppOpsManager.OP_RECEIVE_SMS);
                }
                }


                // Set result (messages were sent)
                setResultCode(android.app.Activity.RESULT_OK);

            } catch (Exception ex) {
            } catch (Exception ex) {
                Log.e(TAG, "Failed to dispatch SMS", ex);
                Log.e(TAG, "Failed to dispatch SMS", ex);

                // Set result (messages were not sent)
                setResultCode(android.app.Activity.RESULT_CANCELED);
            }
            }
        }
        }