mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-20 21:51:45 +00:00
Add cancel to device management network failure alert dialog
Closes #4844
This commit is contained in:
parent
7b589c4300
commit
8c36e20681
@ -146,6 +146,20 @@ public class DeviceListFragment extends ListFragment
|
|||||||
getLoaderManager().initLoader(0, null, DeviceListFragment.this);
|
getLoaderManager().initLoader(0, null, DeviceListFragment.this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
DeviceListFragment.this.getActivity().onBackPressed();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
builder.setOnCancelListener(new DialogInterface.OnCancelListener() {
|
||||||
|
@Override
|
||||||
|
public void onCancel(DialogInterface dialog) {
|
||||||
|
DeviceListFragment.this.getActivity().onBackPressed();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
builder.show();
|
builder.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user