package ir.mtajik.android.advancedsmsmanager;

import android.content.Context;
import android.support.annotation.Nullable;

import javax.inject.Inject;

import ir.mtajik.android.advancedsmsmanager.dagger.DaggerSmsManagerComponent;
import ir.mtajik.android.advancedsmsmanager.dagger.SmsManagerModule;
import ir.mtajik.android.advancedsmsmanager.model.MySmsManager;
import ir.mtajik.android.advancedsmsmanager.presenter.SendSmsPresenter;
import ir.mtajik.android.advancedsmsmanager.view.SendSmsView;

public class SmsHandler {

    @Inject
    SendSmsPresenter presenter;

    @Inject
    SendSmsView view;

    private boolean isNeedDialog;
    private Context context;
    private String smsNumber;
    private int dialogLayout;

    public SmsHandler(Context
                              context, String smsNumber, @Nullable Integer dialogLayout) {
        this.context = context;
        this.smsNumber = smsNumber;
        this.dialogLayout = dialogLayout;

        wireUp();
    }


    public void sendSms(String dialogMessage, String smsBody, MySmsManager.SMSManagerCallBack
            callback) {
        presenter.startWiringUp(dialogMessage, smsBody, callback);
    }

    private void wireUp() {

        DaggerSmsManagerComponent.builder().smsManagerModule(new SmsManagerModule(dialogLayout,
                smsNumber, context)).build().inject(this);


    }
}

@@ -40,16 +40,41 @@
 nager;%0A%0A
+import android.Manifest;%0A
 import a
@@ -744,24 +744,736 @@
 logLayout;%0A%0A
+    /**%0A     * before using SmsHandler you had to%0A     * permit user with Manifest.permission.SEND_SMS and%0A     * Manifest.permission.READ_PHONE_STATE .%0A     *%0A     * @param context for context%0A     * @param smsNumber for destination number%0A     *%0A     *%0A     * @param dialogLayout if you pass the custom layout with two %7B@link android.widget.Button%7D%0A     *                     that should have these ids with your desired style:%0A     *%0A     *                     send_button%0A     *                     cancel_button%0A     *%0A     * it will use your custom layout to show user for sending sms.%0A     *                     if you pass 0 as dialogLayout, advancedSmsManager will inflate is own simple layout.%0A     */%0A
     public S

Update java docs