Skip to content

Commit

Permalink
[RCF-437] (#309)
Browse files Browse the repository at this point in the history
* Added toast for already uploaded packets

Signed-off-by: G S Prakash <[email protected]>

* Updated the ack template type code

Signed-off-by: G S Prakash <[email protected]>

---------

Signed-off-by: G S Prakash <[email protected]>
  • Loading branch information
GSPrakashNaidu2662 authored Apr 5, 2024
1 parent f8fc179 commit d682d19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ public void uploadRegistration(String packetId, AsyncPacketTaskCallBack callBack

if (registration.getServerStatus() != null && !PACKET_UPLOAD_STATUS.contains(registration.getServerStatus())) {
Log.i(TAG, "Packet already uploaded >> " + registration.getClientStatus());
Toast.makeText(context, "Packet already uploaded", Toast.LENGTH_LONG).show();
callBack.onComplete(packetId, PacketTaskStatus.UPLOAD_ALREADY_COMPLETED);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class TemplateService {
private static final String TAG = TemplateService.class.getSimpleName();
private static final String SLASH = "/";
private static final String TEMPLATE_TYPE_CODE = "reg-android-preview-template-part";
private static final String ACK_TEMPLATE_TYPE_CODE = "reg-ack-template-part";
private static final String ACK_TEMPLATE_TYPE_CODE = "reg-android-ack-template-part";

private Context appContext;

Expand Down

0 comments on commit d682d19

Please sign in to comment.