diff --git a/sample/src/main/java/io/runtime/mcumgr/sample/MainActivity.java b/sample/src/main/java/io/runtime/mcumgr/sample/MainActivity.java index 239219c..ec142a6 100644 --- a/sample/src/main/java/io/runtime/mcumgr/sample/MainActivity.java +++ b/sample/src/main/java/io/runtime/mcumgr/sample/MainActivity.java @@ -54,6 +54,7 @@ public class MainActivity extends AppCompatActivity @Inject BluetoothDevice device; @Inject + @Nullable Uri logSessionUri; private Fragment deviceFragment; diff --git a/sample/src/main/java/io/runtime/mcumgr/sample/di/component/McuMgrSubComponent.java b/sample/src/main/java/io/runtime/mcumgr/sample/di/component/McuMgrSubComponent.java index 02f5892..55f2f42 100644 --- a/sample/src/main/java/io/runtime/mcumgr/sample/di/component/McuMgrSubComponent.java +++ b/sample/src/main/java/io/runtime/mcumgr/sample/di/component/McuMgrSubComponent.java @@ -9,6 +9,8 @@ import android.bluetooth.BluetoothDevice; import android.net.Uri; +import androidx.annotation.Nullable; + import dagger.BindsInstance; import dagger.Subcomponent; import io.runtime.mcumgr.sample.application.Dagger2Application; @@ -40,7 +42,7 @@ interface Builder { Builder target(final BluetoothDevice device); @BindsInstance - Builder logSessionUri(final Uri uri); + Builder logSessionUri(final @Nullable Uri uri); McuMgrSubComponent build(); }