By cseguenot joi, 11 octombrie 2018
postat în Tab-ul Office
Răspunsuri 2
Preferințe 0
Vizualizări 8.3 K
Voturi 0
Buna,

When I save a document in Word, the asterisk near the tab title is still visible. I have to switch to another tab and go back to the first one for the asterisk to disapear.

I have Office 365 and Office Tab 13.10, but the issue exists from at least version 12.0 .
Buna,
Vă mulțumim pentru feedback-ul dumneavoastră.
Sorry, we will fix this issue in next version.
·
de ani în urmă 5
·
0 Îi place
·
0 Voturi
·
4 Comentarii
·
In the MedListActivity, add the below code:
@Trece peste
public void onResume(){
    if(viewPager != null && viewPager.getAdapter() != null) {
        viewPager.getAdapter().notifyDataSetChanged();
    }
}
It should refresh the tabs.
If this is not working, do the below:
Move the Adapter creation mechanism (I assume this is the data you want to display) to a separate method, which will be called in OnCreate. This will not change current behavior.
In the Fragment, override the onResume method and also call this new adapter-creating method.
Summing up our comments discussion, the final solution is adding the following method to the Fragment code:
@Trece peste 
public void onResume() { 
    super.onResume (); 
    // Here we call the data setup methods again, to reflect 
    // the changes which took place then the Fragment was paused
    initializeData(); 
    initializeAdapterpassed(); 
    initializeAdapterup(); 
}
·
de ani în urmă 3
·
0 Îi place
·
0 Voturi
·
4 Comentarii
·
Vizualizați mesajul complet