use of com.xabber.android.data.account.OAuthResult in project xabber-android by redsolution.
the class ConnectionThread method passwordRequest.
/**
* Request to renew password using OAuth.
*/
private void passwordRequest() {
final OAuthResult oAuthResult;
try {
oAuthResult = OAuthManager.getInstance().requestAccessToken(protocol, token);
} catch (NetworkException e) {
throw new RuntimeException(e);
}
runOnUiThread(new Runnable() {
@Override
public void run() {
onPasswordReceived(oAuthResult);
}
});
}
Aggregations