kopia lustrzana https://github.com/ryukoposting/Signal-Android
Improve cold start by postponing voice note service creation.
rodzic
0a971569d9
commit
4f31dc36ba
|
@ -54,7 +54,7 @@ public class MainActivity extends PassphraseRequiredActivity implements VoiceNot
|
||||||
|
|
||||||
setContentView(R.layout.main_activity);
|
setContentView(R.layout.main_activity);
|
||||||
|
|
||||||
mediaController = new VoiceNoteMediaController(this);
|
mediaController = new VoiceNoteMediaController(this, true);
|
||||||
|
|
||||||
ConversationListTabRepository repository = new ConversationListTabRepository();
|
ConversationListTabRepository repository = new ConversationListTabRepository();
|
||||||
ConversationListTabsViewModel.Factory factory = new ConversationListTabsViewModel.Factory(repository);
|
ConversationListTabsViewModel.Factory factory = new ConversationListTabsViewModel.Factory(repository);
|
||||||
|
|
|
@ -881,7 +881,7 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||||
AppStartup.getInstance().onCriticalRenderEventEnd();
|
AppStartup.getInstance().onCriticalRenderEventEnd();
|
||||||
startupStopwatch.split("first-render");
|
startupStopwatch.split("first-render");
|
||||||
startupStopwatch.stop(TAG);
|
startupStopwatch.stop(TAG);
|
||||||
|
mediaControllerOwner.getVoiceNoteMediaController().finishPostpone();
|
||||||
if (getContext() != null) {
|
if (getContext() != null) {
|
||||||
ConversationFragment.prepare(getContext());
|
ConversationFragment.prepare(getContext());
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue