Skip to content

Commit

Permalink
allow for overriding some of the status updated receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
klinker24 committed Jun 11, 2019
1 parent 301b5f3 commit aedc6af
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ For full details on how to implement, please check out the sample application. I
To include in your gradle project:

```groovy
compile 'com.klinkerapps:android-smsmms:5.1.1'
compile 'com.klinkerapps:android-smsmms:5.1.2'
```

---
Expand Down
2 changes: 1 addition & 1 deletion library/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=5.1.1
VERSION_NAME=5.1.2
VERSION_CODE=69
GROUP=com.klinkerapps

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public abstract class DeliveredReceiver extends StatusUpdatedReceiver {

@Override
public final void updateInInternalDatabase(Context context, Intent intent, int resultCode) {
public void updateInInternalDatabase(Context context, Intent intent, int resultCode) {
Log.v("delivery_receiver", "marking message as delivered");

final Uri uri = getUri(intent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.klinker.android.send_message;

import android.content.BroadcastReceiver;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
Expand All @@ -37,7 +36,7 @@ public abstract class MmsSentReceiver extends StatusUpdatedReceiver {
public static final String EXTRA_FILE_PATH = "file_path";

@Override
public final void updateInInternalDatabase(Context context, Intent intent, int resultCode) {
public void updateInInternalDatabase(Context context, Intent intent, int resultCode) {
Log.v(TAG, "MMS has finished sending, marking it as so, in the database");

Uri uri = Uri.parse(intent.getStringExtra(EXTRA_CONTENT_URI));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public abstract class SentReceiver extends StatusUpdatedReceiver {

@Override
public final void updateInInternalDatabase(Context context, Intent intent, int resultCode) {
public void updateInInternalDatabase(Context context, Intent intent, int resultCode) {
Log.v("sent_receiver", "marking message as sent");
final Uri uri = getUri(intent);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public final void onReceive(final Context context, final Intent intent) {
new Thread(new Runnable() {
@Override
public void run() {
updateInInternalDatabase(context, intent, resultCode);
onMessageStatusUpdated(context, intent, resultCode);
updateInInternalDatabase(context, intent, resultCode);
result.finish();
}
}).start();
Expand Down

0 comments on commit aedc6af

Please sign in to comment.