mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
termux service: make sure that styling is always applied whenever session starts
This commit is contained in:
committed by
Fredrik Fornwall
parent
fe41cd486f
commit
10fe238ddb
@@ -295,6 +295,12 @@ public final class TermuxService extends Service implements SessionChangedCallba
|
|||||||
TerminalSession session = new TerminalSession(executablePath, cwd, args, env, this);
|
TerminalSession session = new TerminalSession(executablePath, cwd, args, env, this);
|
||||||
mTerminalSessions.add(session);
|
mTerminalSessions.add(session);
|
||||||
updateNotification();
|
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;
|
return session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user