Merge pull request #604 from frogoscar/enmingxie/Fix_change_SplitSMS_in_Settings_not_taken_into_account

Fix change SplitSMS in Settings not taken into account
This commit is contained in:
Moez Bhatti
2016-08-30 00:37:10 -04:00
committed by GitHub
@@ -61,6 +61,8 @@ import com.google.android.mms.smil.SmilHelper;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.koushikdutta.ion.Ion;
import com.moez.QKSMS.common.QKPreferences;
import com.moez.QKSMS.enums.QKPreference;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -231,7 +233,7 @@ public class Transaction {
SmsManager smsManager = SmsManager.getDefault();
if (LOCAL_LOGV) Log.v(TAG, "found sms manager");
if (settings.getSplit()) {
if (QKPreferences.getBoolean(QKPreference.SPLIT_SMS)) {
if (LOCAL_LOGV) Log.v(TAG, "splitting message");
// figure out the length of supported message
int[] splitData = SmsMessage.calculateLength(body, false);