mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Don't show flash of pairing buttons when opening a device
Summary: The buttons are now hidden, and only showed once we know that the device is unpaired. Test Plan: Pairing, pairing request and opening a device still work. Reviewers: #kde_connect, nicolasfella Reviewed By: #kde_connect, nicolasfella Subscribers: #kde_connect Differential Revision: https://phabricator.kde.org/D11627
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ProgressBar
|
||||
|
@@ -323,6 +323,7 @@ public class DeviceFragment extends Fragment {
|
||||
|
||||
if (device.isPairRequestedByPeer()) {
|
||||
((TextView) rootView.findViewById(R.id.pair_message)).setText(R.string.pair_requested);
|
||||
rootView.findViewById(R.id.pairing_buttons).setVisibility(View.VISIBLE);
|
||||
rootView.findViewById(R.id.pair_progress).setVisibility(View.GONE);
|
||||
rootView.findViewById(R.id.pair_button).setVisibility(View.GONE);
|
||||
rootView.findViewById(R.id.pair_request).setVisibility(View.VISIBLE);
|
||||
|
Reference in New Issue
Block a user