Skip to content

Commit

Permalink
Merge pull request #210 from vuptt/fix/make-user-context-nullable
Browse files Browse the repository at this point in the history
fix: make userContext is nullable (#209)
  • Loading branch information
hannesa2 authored Sep 18, 2021
2 parents 3932d6f + 27a0861 commit 3ad24fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ExtendedPublishTest {
.check(matches(isClosed(Gravity.LEFT))) // Left Drawer should be closed.
.perform(DrawerActions.open())
onView(withId(R.id.action_add_connection)).perform(click())
onView(withContentDescription(R.string.action_add_connection)).perform(click())
onView(withId(R.id.action_save_connection)).perform(click())

Screenshot.takeScreenshot("AddConnect")

Expand Down
2 changes: 1 addition & 1 deletion extendedSample/src/main/res/menu/menu_edit_connection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:id="@+id/action_save_connection"
android:icon="@drawable/ic_done"
android:orderInCategory="100"
android:title="@string/action_add_connection"
android:title=""
app:showAsAction="ifRoom" />

</menu>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class MqttAndroidClient(val context: Context, private val serverURI: String, pri
* @param callback optional listener that will be notified when the disconnect completes. Use null if not required.
* @return token used to track and wait for the disconnect to complete. The token will be passed to any callback that has been set.
*/
override fun disconnect(quiesceTimeout: Long, userContext: Any, callback: IMqttActionListener): IMqttToken {
override fun disconnect(quiesceTimeout: Long, userContext: Any?, callback: IMqttActionListener): IMqttToken {
val token: IMqttToken = MqttTokenAndroid(this, userContext, callback)
val activityToken = storeToken(token)
mqttService!!.disconnect(clientHandle!!, quiesceTimeout, null, activityToken)
Expand Down

0 comments on commit 3ad24fd

Please sign in to comment.