mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Fixed crash on unpairing
This commit is contained in:
@@ -441,6 +441,7 @@ public class DeviceFragment extends Fragment {
|
|||||||
mActivity.runOnUiThread(new Runnable() {
|
mActivity.runOnUiThread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (rootView == null) return;
|
||||||
((TextView) rootView.findViewById(R.id.pair_message)).setText(error);
|
((TextView) rootView.findViewById(R.id.pair_message)).setText(error);
|
||||||
rootView.findViewById(R.id.pair_progress).setVisibility(View.GONE);
|
rootView.findViewById(R.id.pair_progress).setVisibility(View.GONE);
|
||||||
rootView.findViewById(R.id.pair_button).setVisibility(View.VISIBLE);
|
rootView.findViewById(R.id.pair_button).setVisibility(View.VISIBLE);
|
||||||
@@ -455,6 +456,7 @@ public class DeviceFragment extends Fragment {
|
|||||||
mActivity.runOnUiThread(new Runnable() {
|
mActivity.runOnUiThread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (rootView == null) return;
|
||||||
((TextView) rootView.findViewById(R.id.pair_message)).setText(R.string.device_not_paired);
|
((TextView) rootView.findViewById(R.id.pair_message)).setText(R.string.device_not_paired);
|
||||||
rootView.findViewById(R.id.pair_progress).setVisibility(View.GONE);
|
rootView.findViewById(R.id.pair_progress).setVisibility(View.GONE);
|
||||||
rootView.findViewById(R.id.pair_button).setVisibility(View.VISIBLE);
|
rootView.findViewById(R.id.pair_button).setVisibility(View.VISIBLE);
|
||||||
|
Reference in New Issue
Block a user