Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Wi-Fi Direct File Transfer UI to Display Real-Time Progress Using Broadcast Channel #7

Open
SaiDheerajPeketi opened this issue Oct 6, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request medium level SaiDheerajPeketi mentor

Comments

@SaiDheerajPeketi
Copy link

🐛Bug-Report

Expected behavior

The Wi-Fi Direct file transfer UI should display the progress of the files being transferred in real-time. The progress should be dynamically updated as data is received through a broadcast channel. The UI should be consistent with the Bluetooth transfer progress activity, displaying the percentage of file transfer completion, file size, and estimated time remaining.

Current behavior

The current Wi-Fi Direct file transfer UI is not displaying any progress information during file transfers. Even though progress updates are being received through the broadcast channel, they are not being reflected in the UI. This creates confusion for the user, as there is no indication of transfer status or completion.

Steps to reproduce

  1. Initiate a file transfer via Wi-Fi Direct.
  2. Observe the file transfer UI, which remains empty and does not show any progress.
  3. Check the broadcast messages for progress updates, which are being received but not displayed.

Possible Solution

  1. Use Broadcast to Capture Progress:
    Ensure that the broadcast receiver is correctly capturing progress updates for Wi-Fi Direct transfers. The broadcast messages should include data such as bytes transferred, total file size, and percentage completion.

  2. UI Updates:
    Leverage the same composable that is used for the Bluetooth file transfer progress. This will maintain UI consistency across both transfer modes (Bluetooth and Wi-Fi Direct).

  3. Bind Data to UI:
    Bind the data received from the broadcast receiver to the UI so that the progress bar and other relevant information are updated dynamically. Ensure the progress updates are triggered on the main thread to avoid UI thread issues.

  4. Testing:
    Verify that the same logic used in the Bluetooth progress activity works correctly with Wi-Fi Direct. Ensure that progress is displayed, updated in real-time, and the final transfer status (success/failure) is handled properly.

Context

This issue occurs in the Wi-Fi Direct file transfer UI, where the file transfer progress is not being displayed despite progress updates being available via the broadcast channel.

@SaiDheerajPeketi SaiDheerajPeketi added bug Something isn't working enhancement New feature or request SaiDheerajPeketi mentor medium level labels Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request medium level SaiDheerajPeketi mentor
Projects
None yet
Development

No branches or pull requests

1 participant