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
5a49aecc
Commit
5a49aecc
authored
Jan 01, 2019
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give up on broken systems
parent
373222d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
mobile/src/main/java/com/github/shadowsocks/ScannerActivity.kt
...e/src/main/java/com/github/shadowsocks/ScannerActivity.kt
+4
-1
tv/src/main/java/com/github/shadowsocks/tv/ProfilesDialogFragment.kt
.../java/com/github/shadowsocks/tv/ProfilesDialogFragment.kt
+1
-1
No files found.
mobile/src/main/java/com/github/shadowsocks/ScannerActivity.kt
View file @
5a49aecc
...
...
@@ -21,6 +21,7 @@
package
com.github.shadowsocks
import
android.app.Activity
import
android.content.ActivityNotFoundException
import
android.content.Intent
import
android.content.pm.ShortcutManager
import
android.hardware.camera2.CameraAccessException
...
...
@@ -61,7 +62,9 @@ class ScannerActivity : AppCompatActivity(), BarcodeRetriever {
private
lateinit
var
detector
:
BarcodeDetector
private
fun
fallback
()
{
try
{
startActivity
(
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
"market://details?id=tw.com.quickmark"
)))
}
catch
(
_
:
ActivityNotFoundException
)
{
}
finish
()
}
...
...
tv/src/main/java/com/github/shadowsocks/tv/ProfilesDialogFragment.kt
View file @
5a49aecc
...
...
@@ -60,7 +60,7 @@ class ProfilesDialogFragment : LeanbackListPreferenceDialogFragment() {
if
(
index
==
RecyclerView
.
NO_POSITION
)
return
Core
.
switchProfile
(
profiles
[
index
].
id
)
(
targetFragment
as
MainPreferenceFragment
).
startService
()
fragmentManager
.
popBackStack
()
fragmentManager
?
.
popBackStack
()
notifyDataSetChanged
()
}
...
...
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