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

Commit 37782935 authored by Stuart Scott's avatar Stuart Scott
Browse files

User ByteBuffer to pack array

Change-Id: I3d06f2aeae7e12e8b9d48e4a48e5bebc9de98abf
parent 9890dbca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2962,8 +2962,8 @@ public class DcTracker extends Handler {
                    String radioTestProperty = "persist.radio.test.pco";
                    int pcoVal = SystemProperties.getInt(radioTestProperty, 0);
                    log("PCO testing: read pco value from persist.radio.test.pco " + pcoVal);
                    final byte[] value = new byte[1];
                    value[0] = (byte)pcoVal;
                    final byte[] value = new byte[4];
                    java.nio.ByteBuffer.wrap(value).putInt(pcoVal);
                    final Intent intent =
                            new Intent(TelephonyIntents.ACTION_CARRIER_SIGNAL_PCO_VALUE);
                    intent.putExtra(TelephonyIntents.EXTRA_APN_TYPE_KEY, "default");