Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
QuasselDroid-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
QuasselDroid-ng
Commits
8d8df245
Commit
8d8df245
authored
9 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a tiny issue in the way buffered sync functions are handled.
parent
fd47bd8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/de/kuschku/libquassel/client/QClient.java
+8
-3
8 additions, 3 deletions
app/src/main/java/de/kuschku/libquassel/client/QClient.java
with
8 additions
and
3 deletions
app/src/main/java/de/kuschku/libquassel/client/QClient.java
+
8
−
3
View file @
8d8df245
...
@@ -80,7 +80,7 @@ public class QClient extends AClient {
...
@@ -80,7 +80,7 @@ public class QClient extends AClient {
private
final
NotificationManager
notificationManager
;
private
final
NotificationManager
notificationManager
;
private
final
List
<
String
>
initRequests
=
new
LinkedList
<>();
private
final
List
<
String
>
initRequests
=
new
LinkedList
<>();
private
final
List
<
Integer
>
backlogRequests
=
new
LinkedList
<>();
private
final
List
<
Integer
>
backlogRequests
=
new
LinkedList
<>();
private
final
Map
<
String
,
SyncFunction
>
bufferedSyncs
=
new
HashMap
<>();
private
final
Map
<
String
,
List
<
SyncFunction
>
>
bufferedSyncs
=
new
HashMap
<>();
private
final
QBacklogManager
backlogManager
;
private
final
QBacklogManager
backlogManager
;
private
QBufferViewManager
bufferViewManager
;
private
QBufferViewManager
bufferViewManager
;
// local
// local
...
@@ -347,7 +347,10 @@ public class QClient extends AClient {
...
@@ -347,7 +347,10 @@ public class QClient extends AClient {
if
(
bufferedSyncs
.
size
()
>
0
)
{
if
(
bufferedSyncs
.
size
()
>
0
)
{
String
key
=
hashName
(
className
,
objectName
);
String
key
=
hashName
(
className
,
objectName
);
if
(
bufferedSyncs
.
containsKey
(
key
))
{
if
(
bufferedSyncs
.
containsKey
(
key
))
{
provider
.
handle
(
bufferedSyncs
.
get
(
key
));
List
<
SyncFunction
>
functions
=
bufferedSyncs
.
get
(
key
);
for
(
SyncFunction
function
:
functions
)
provider
.
handle
(
function
);
bufferedSyncs
.
remove
(
key
);
}
}
}
}
}
}
...
@@ -429,6 +432,8 @@ public class QClient extends AClient {
...
@@ -429,6 +432,8 @@ public class QClient extends AClient {
public
void
bufferSync
(
@NonNull
SyncFunction
packedFunc
)
{
public
void
bufferSync
(
@NonNull
SyncFunction
packedFunc
)
{
String
key
=
hashName
(
packedFunc
.
className
,
packedFunc
.
objectName
);
String
key
=
hashName
(
packedFunc
.
className
,
packedFunc
.
objectName
);
bufferedSyncs
.
put
(
key
,
packedFunc
);
if
(!
bufferedSyncs
.
containsKey
(
key
))
bufferedSyncs
.
put
(
key
,
new
LinkedList
<>());
bufferedSyncs
.
get
(
key
).
add
(
packedFunc
);
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment