Loading android/app/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java +9 −0 Original line number Diff line number Diff line Loading @@ -148,6 +148,8 @@ public class BluetoothPbapObexServer extends ServerRequestHandler { private int mOrderBy = ORDER_BY_INDEXED; private static int CALLLOG_NUM_LIMIT = 50; public static int ORDER_BY_INDEXED = 0; public static int ORDER_BY_ALPHABETICAL = 1; Loading Loading @@ -942,6 +944,13 @@ public class BluetoothPbapObexServer extends ServerRequestHandler { return ResponseCodes.OBEX_HTTP_OK; } // Limit the number of call log to CALLLOG_NUM_LIMIT if (appParamValue.needTag != BluetoothPbapObexServer.ContentType.PHONEBOOK) { if (requestSize > CALLLOG_NUM_LIMIT) { requestSize = CALLLOG_NUM_LIMIT; } } int endPoint = startPoint + requestSize - 1; if (endPoint > pbSize - 1) { endPoint = pbSize - 1; Loading Loading
android/app/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java +9 −0 Original line number Diff line number Diff line Loading @@ -148,6 +148,8 @@ public class BluetoothPbapObexServer extends ServerRequestHandler { private int mOrderBy = ORDER_BY_INDEXED; private static int CALLLOG_NUM_LIMIT = 50; public static int ORDER_BY_INDEXED = 0; public static int ORDER_BY_ALPHABETICAL = 1; Loading Loading @@ -942,6 +944,13 @@ public class BluetoothPbapObexServer extends ServerRequestHandler { return ResponseCodes.OBEX_HTTP_OK; } // Limit the number of call log to CALLLOG_NUM_LIMIT if (appParamValue.needTag != BluetoothPbapObexServer.ContentType.PHONEBOOK) { if (requestSize > CALLLOG_NUM_LIMIT) { requestSize = CALLLOG_NUM_LIMIT; } } int endPoint = startPoint + requestSize - 1; if (endPoint > pbSize - 1) { endPoint = pbSize - 1; Loading