Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
7cc3c482
Commit
7cc3c482
authored
Feb 04, 2018
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix translucent style
parent
26fb0e5e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
mobile/src/main/AndroidManifest.xml
mobile/src/main/AndroidManifest.xml
+1
-1
mobile/src/main/java/com/github/shadowsocks/VpnRequestActivity.kt
...rc/main/java/com/github/shadowsocks/VpnRequestActivity.kt
+2
-2
mobile/src/main/java/com/github/shadowsocks/bg/LocalSocketListener.kt
...ain/java/com/github/shadowsocks/bg/LocalSocketListener.kt
+1
-1
mobile/src/main/res/values/styles.xml
mobile/src/main/res/values/styles.xml
+10
-0
No files found.
mobile/src/main/AndroidManifest.xml
View file @
7cc3c482
...
...
@@ -71,7 +71,7 @@
<activity
android:name=
".VpnRequestActivity"
android:theme=
"@
android:style/Theme.Translucent.NoTitleBar
"
android:theme=
"@
style/Theme.Translucent
"
android:excludeFromRecents=
"true"
android:taskAffinity=
""
android:launchMode=
"singleTask"
/>
...
...
mobile/src/main/java/com/github/shadowsocks/VpnRequestActivity.kt
View file @
7cc3c482
...
...
@@ -20,7 +20,6 @@
package
com.github.shadowsocks
import
android.app.Activity
import
android.app.KeyguardManager
import
android.content.BroadcastReceiver
import
android.content.Context
...
...
@@ -28,13 +27,14 @@ import android.content.Intent
import
android.content.IntentFilter
import
android.net.VpnService
import
android.os.Bundle
import
android.support.v7.app.AppCompatActivity
import
android.util.Log
import
com.github.shadowsocks.App.Companion.app
import
com.github.shadowsocks.aidl.IShadowsocksService
import
com.github.shadowsocks.bg.BaseService
import
com.github.shadowsocks.utils.broadcastReceiver
class
VpnRequestActivity
:
Activity
(),
ShadowsocksConnection
.
Interface
{
class
VpnRequestActivity
:
A
ppCompatA
ctivity
(),
ShadowsocksConnection
.
Interface
{
companion
object
{
private
const
val
TAG
=
"VpnRequestActivity"
private
const
val
REQUEST_CONNECT
=
1
...
...
mobile/src/main/java/com/github/shadowsocks/bg/LocalSocketListener.kt
View file @
7cc3c482
...
...
@@ -41,7 +41,7 @@ abstract class LocalSocketListener(protected val tag: String) : Thread() {
* Inherited class do not need to close input/output streams as they will be closed automatically.
*/
protected
abstract
fun
accept
(
socket
:
LocalSocket
)
override
final
fun
run
()
{
final
override
fun
run
()
{
socketFile
.
delete
()
// It's a must-have to close and reuse previous local socket.
LocalSocket
().
use
{
localSocket
->
val
serverSocket
=
try
{
...
...
mobile/src/main/res/values/styles.xml
View file @
7cc3c482
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name=
"Theme.Translucent"
parent=
"Theme.AppCompat.Dialog"
>
<item
name=
"android:windowBackground"
>
@android:color/transparent
</item>
<item
name=
"android:windowFrame"
>
@null
</item>
<item
name=
"android:windowContentOverlay"
>
@null
</item>
<item
name=
"android:windowAnimationStyle"
>
@null
</item>
<item
name=
"android:backgroundDimEnabled"
>
false
</item>
<item
name=
"android:windowIsTranslucent"
>
true
</item>
<item
name=
"android:windowNoTitle"
>
true
</item>
<item
name=
"android:windowCloseOnTouchOutside"
>
false
</item>
</style>
<style
name=
"StyledScrollerTextAppearance"
parent=
"@android:style/TextAppearance"
>
<item
name=
"android:textSize"
>
24sp
</item>
<item
name=
"android:textStyle"
>
bold
</item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment