Fix: exitPrompt not public
This commit is contained in:
parent
84f734155b
commit
b07a4b1a57
@ -1,10 +1,11 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.4.1)
|
||||
|
||||
add_library(neoterm
|
||||
SHARED
|
||||
src/main/cpp/neoterm.cpp)
|
||||
|
||||
target_link_libraries(neoterm)
|
||||
|
||||
#add_library(nexec
|
||||
# SHARED
|
||||
# src/main/cpp/exec.c)
|
||||
|
@ -8,6 +8,8 @@
|
||||
#include <sys/wait.h>
|
||||
#include <termios.h>
|
||||
|
||||
#define __neoterm_no_return __attribute__((__noreturn__))
|
||||
|
||||
#define TERMUX_UNUSED(x) x __attribute__((__unused__))
|
||||
#ifdef __APPLE__
|
||||
# define LACKS_PTSNAME_R
|
||||
|
@ -4,10 +4,9 @@ import android.content.Context
|
||||
import io.neoterm.App
|
||||
import io.neoterm.R
|
||||
import io.neoterm.backend.TerminalSession
|
||||
import io.neoterm.frontend.preference.DefaultPreference
|
||||
import io.neoterm.frontend.session.shell.client.TermSessionCallback
|
||||
import io.neoterm.frontend.preference.NeoPreference
|
||||
import io.neoterm.frontend.preference.NeoTermPath
|
||||
import io.neoterm.frontend.session.shell.client.TermSessionCallback
|
||||
import java.io.File
|
||||
|
||||
/**
|
||||
@ -19,7 +18,7 @@ open class ShellTermSession private constructor(shellPath: String, cwd: String,
|
||||
val shellProfile: ShellProfile)
|
||||
: TerminalSession(shellPath, cwd, args, env, changeCallback) {
|
||||
|
||||
private var exitPrompt = App.get().getString(R.string.process_exit_prompt)
|
||||
var exitPrompt = App.get().getString(R.string.process_exit_prompt)
|
||||
|
||||
override fun initializeEmulator(columns: Int, rows: Int) {
|
||||
super.initializeEmulator(columns, rows)
|
||||
|
@ -134,7 +134,7 @@ class NeoTermService : Service() {
|
||||
builder.setShowWhen(false)
|
||||
builder.color = 0xFF000000.toInt()
|
||||
|
||||
builder.priority = if (lockAcquired) NotificationCompat.PRIORITY_HIGH else NotificationCompat.PRIORITY_MIN
|
||||
builder.priority = if (lockAcquired) Notification.PRIORITY_HIGH else Notification.PRIORITY_LOW
|
||||
|
||||
val exitIntent = Intent(this, NeoTermService::class.java).setAction(ACTION_SERVICE_STOP)
|
||||
builder.addAction(android.R.drawable.ic_delete, getString(R.string.exit), PendingIntent.getService(this, 0, exitIntent, 0))
|
||||
|
Loading…
Reference in New Issue
Block a user