Skip to content

Included new widget

Jakub Prussak requested to merge rionmuerte/kdeconnect-android:master into master

Summary

Included a new widget that runs one preselected command on the computer.

I use run command widget rather often but I find it annoying that it works only with one computer and contains list of all available commands. To solve this I decided to add another widget, that runs only one command, so I could group them on different pages on the home screen.

This widget is using icons selected by user.

How to use it:

  1. Search for "Run command 1x1" widget in widget list s1
  2. A command setup prompts will appear, you will be asked to select a machine you want to run command on first s2
  3. Next you will be taken to list of available commands your device can run remotely, you will have to select one of them s3
  4. Last step would be to select icon from disc, this could be any image, it will be later scaled to fit icon size s4
  5. Newly created widget will appear on your home screen s5

Here is how the entire process looks:

untitled Unfortunately the video is badly synchronized

Test Plan

To test it follow the steps described above.

When encountered non typical situation a prompt with message will be displayed, here is list of the scenarios:

  • device you are trying to run command on is not connected - will prompt adequate message after clicking widget
  • there are no available devices while creating widget - will prompt that on widget creation and abort creation
  • paired computer disabled command - when you delete command in KDE Connect on a computer, adequate message will be prompted when trying to run that command, widget will not be deleted and no other action will be taken

Merge request reports

Loading