Skip to content

Commit

Permalink
Upped version to 3.0.0 and fixed SDK 31 intent flag oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeaschenbrenner committed Feb 6, 2025
1 parent 02fbaa0 commit a3f4fbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "com.txtnet.txtnetbrowser"
//minSdk 19
targetSdk 35
versionCode 221
versionName "2.2.1"
versionCode 300
versionName "3.0.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.debug
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.txtnet.txtnetbrowser.server;

import static android.app.PendingIntent.FLAG_IMMUTABLE;
import static com.txtnet.txtnetbrowser.basest.Base10Conversions.SYMBOL_TABLE;
import static com.txtnet.txtnetbrowser.basest.Base10Conversions.v2r;

Expand Down Expand Up @@ -56,7 +57,7 @@ public SmsSocket(Phonenumber.PhoneNumber number, TxtNetServerService service, in
this.service = service;
MAX_SMS_PER_REQUEST = maxSmsPerRequest;
SMS_SERVER_SEND_INTERVAL_MS = smsSendIntervalMs;
sentPI = PendingIntent.getBroadcast(service.getApplication().getApplicationContext(), 0,new Intent("SMS_SENT"), 0);
sentPI = PendingIntent.getBroadcast(service.getApplication().getApplicationContext(), 0,new Intent("SMS_SENT"), FLAG_IMMUTABLE);
}
public SmsSocket(){
inputRequestBuffer = new ArrayList<>();
Expand Down

0 comments on commit a3f4fbf

Please sign in to comment.