mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-21 21:01:43 +08:00
fix: Documentation title not showing
This commit is contained in:
parent
a72147fcf2
commit
197f2136c6
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user