Change displayname in firebase don't work
<p>I have a problem with firebase. I'm working with the official documentation for change the <code>displayName</code> and the url-image of an account. I think that the code is right because is very simple, but it not work very well. The app not always change the display name, but only sometime, also if the app say that the operation is successful.</p>
<pre><code>TextView t = (TextView) findViewById(R.id.txt);
    e =(EditText) findViewById(R.id.edt);
    Button b = (Button) findViewById(R.id.btn);
    
    user = FirebaseAuth.getInstance().getCurrentUser();
    b.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {

            UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder()
                    .setDisplayName(e.getText().toString())
                    .setPhotoUri(Uri.parse(&quot;www.google.it&quot;))
                    .build();

            user.updateProfile(profileUpdates)
                    .addOnCompleteListener(new OnCompleteListener&lt;Void&gt;() {
                        @Override
                        public void onComplete(@NonNull Task&lt;Void&gt; task) {
                            if (task.isSuccessful()) {
                                Toast.makeText(prova.this, &quot;Name Changed!&quot;, Toast.LENGTH_SHORT).show();


                            }
                        }
                    });

        }
    });


    String u = user.getDisplayName();
    t.setText(u);
</code></pre>
<p>in logcat:</p>
<blockquote>
<p>W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.</p>
</blockquote>
<p><strong>edit</strong>
I did various tests and I saw that the change takes effect but to see the effects I have to make a sign-out and authentication. How do I see the effects immediately?</p>