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
795c9c86
Commit
795c9c86
authored
Jul 24, 2018
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine
parent
3ca157c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
mobile/src/main/java/com/github/shadowsocks/ProfilesFragment.kt
.../src/main/java/com/github/shadowsocks/ProfilesFragment.kt
+2
-2
mobile/src/main/java/com/github/shadowsocks/widget/UndoSnackbarManager.kt
...java/com/github/shadowsocks/widget/UndoSnackbarManager.kt
+3
-3
No files found.
mobile/src/main/java/com/github/shadowsocks/ProfilesFragment.kt
View file @
795c9c86
...
@@ -415,9 +415,9 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener {
...
@@ -415,9 +415,9 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener {
profilesAdapter
.
deepRefreshId
(
profileId
)
profilesAdapter
.
deepRefreshId
(
profileId
)
}
}
override
fun
onDe
tach
()
{
override
fun
onDe
stroyView
()
{
undoManager
.
flush
()
undoManager
.
flush
()
super
.
onDe
tach
()
super
.
onDe
stroyView
()
}
}
override
fun
onDestroy
()
{
override
fun
onDestroy
()
{
...
...
mobile/src/main/java/com/github/shadowsocks/widget/UndoSnackbarManager.kt
View file @
795c9c86
...
@@ -20,9 +20,9 @@
...
@@ -20,9 +20,9 @@
package
com.github.shadowsocks.widget
package
com.github.shadowsocks.widget
import
com.google.android.material.snackbar.Snackbar
import
android.view.View
import
android.view.View
import
com.github.shadowsocks.R
import
com.github.shadowsocks.R
import
com.google.android.material.snackbar.Snackbar
/**
/**
* @param view The view to find a parent from.
* @param view The view to find a parent from.
...
@@ -52,10 +52,10 @@ class UndoSnackbarManager<in T>(private val view: View, private val undo: (List<
...
@@ -52,10 +52,10 @@ class UndoSnackbarManager<in T>(private val view: View, private val undo: (List<
val
snackbar
=
Snackbar
val
snackbar
=
Snackbar
.
make
(
view
,
view
.
resources
.
getQuantityString
(
R
.
plurals
.
removed
,
count
,
count
),
Snackbar
.
LENGTH_LONG
)
.
make
(
view
,
view
.
resources
.
getQuantityString
(
R
.
plurals
.
removed
,
count
,
count
),
Snackbar
.
LENGTH_LONG
)
.
addCallback
(
removedCallback
)
.
addCallback
(
removedCallback
)
.
setAction
(
R
.
string
.
undo
,
{
.
setAction
(
R
.
string
.
undo
)
{
undo
(
recycleBin
.
reversed
())
undo
(
recycleBin
.
reversed
())
recycleBin
.
clear
()
recycleBin
.
clear
()
}
)
}
snackbar
.
show
()
snackbar
.
show
()
last
=
snackbar
last
=
snackbar
}
}
...
...
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