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);
|
||||
|
||||
mediaController = new VoiceNoteMediaController(this);
|
||||
mediaController = new VoiceNoteMediaController(this, true);
|
||||
|
||||
ConversationListTabRepository repository = new ConversationListTabRepository();
|
||||
ConversationListTabsViewModel.Factory factory = new ConversationListTabsViewModel.Factory(repository);
|
||||
|
|
|
@ -881,7 +881,7 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
|||
AppStartup.getInstance().onCriticalRenderEventEnd();
|
||||
startupStopwatch.split("first-render");
|
||||
startupStopwatch.stop(TAG);
|
||||
|
||||
mediaControllerOwner.getVoiceNoteMediaController().finishPostpone();
|
||||
if (getContext() != null) {
|
||||
ConversationFragment.prepare(getContext());
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue