termux service: make sure that styling is always applied whenever session starts

This commit is contained in:
Leonid Plyushch 2019-02-12 18:16:06 +02:00 committed by Fredrik Fornwall
parent fe41cd486f
commit 10fe238ddb
1 changed files with 6 additions and 0 deletions

View File

@ -295,6 +295,12 @@ public final class TermuxService extends Service implements SessionChangedCallba
TerminalSession session = new TerminalSession(executablePath, cwd, args, env, this);
mTerminalSessions.add(session);
updateNotification();
// Make sure that terminal styling is always applied.
Intent stylingIntent = new Intent("com.termux.app.reload_style");
stylingIntent.putExtra("com.termux.app.reload_style", "styling");
sendBroadcast(stylingIntent);
return session;
}