Fix crash on login

This commit is contained in:
CappielloAntonio 2021-08-09 12:28:34 +02:00
parent 8ede5fffea
commit f109f779dc

View file

@ -104,7 +104,7 @@ public class ServerSignupDialog extends DialogFragment {
@Override
public void onError(Exception exception) {
Log.e(TAG, exception.getMessage());
Toast.makeText(requireContext(), exception.getMessage(), Toast.LENGTH_LONG).show();
Toast.makeText(context, exception.getMessage(), Toast.LENGTH_LONG).show();
}
@Override
@ -137,6 +137,6 @@ public class ServerSignupDialog extends DialogFragment {
return;
}
App.getSubsonicClientInstance(requireContext(), true);
App.getSubsonicClientInstance(context, true);
}
}