fix: Documentation title not showing

This commit is contained in:
hyb1996 2017-08-15 20:23:17 +08:00
parent a72147fcf2
commit 197f2136c6
2 changed files with 8 additions and 5 deletions

View File

@ -40,6 +40,7 @@ public class DocumentationActivity extends BaseActivity {
super.onCreate(savedInstanceState);
setUpUI();
handleIntent(getIntent());
setToolbarAsBack(mTitle);
}
private void handleIntent(Intent intent) {
@ -68,7 +69,6 @@ public class DocumentationActivity extends BaseActivity {
private void setUpUI() {
setContentView(R.layout.activity_document);
setToolbarAsBack(mTitle);
setUpLoadingView();
}

View File

@ -107,9 +107,13 @@ public class HelpCatalogueActivity extends BaseActivity {
if (CATALOGUES == null) {
readCatalogues();
} else {
mLoadingIndicatorView.hide();
handleIntent();
onCataloguesAvailable();
}
}
private void onCataloguesAvailable(){
mLoadingIndicatorView.hide();
handleIntent();
setToolbarAsBack(mTitle);
}
@ -121,8 +125,7 @@ public class HelpCatalogueActivity extends BaseActivity {
runOnUiThread(new Runnable() {
@Override
public void run() {
mLoadingIndicatorView.hide();
handleIntent();
onCataloguesAvailable();
}
});
}