package com.nuvoex.baseframework;

import android.Manifest;
import android.os.Bundle;
import android.util.Log;
import android.view.MenuItem;

import com.nuvoex.library.LumiereBaseActivity;
import com.nuvoex.library.permission.Permission;
import com.nuvoex.library.permission.Permission.PermissionBuilder;


public class MainActivity extends LumiereBaseActivity implements Permission.FragmentPermissionCallback {

    private static final int PHOTO_ACTIVITY_REQUEST_CARMERA_AND_READ_WRITE = 50;
    private static final String[] PHOTO_ACTIVITY_CAMERA_PERMISSIONS = {Manifest.permission.CAMERA};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        checkPermissionCamera();
    }

    private void checkPermissionCamera() {

        PermissionBuilder permissionBuilder = new PermissionBuilder(PHOTO_ACTIVITY_CAMERA_PERMISSIONS, PHOTO_ACTIVITY_REQUEST_CARMERA_AND_READ_WRITE, this);
        permissionBuilder.enableDefaultRationalDialog("ration","dsadasdsada")
                .enableDefaultSettingDialog("Setting", "eaeqwe wqeew qweqwe");
        requestAppPermissions(permissionBuilder.build());
    }

    @Override
    protected void configureToolbar() {

    }

    @Override
    protected void setUpNavigationView() {

    }

    @Override
    public int getFrameLayoutId() {
        return 0;
    }

    @Override
    public String getName() {
        return null;
    }

    @Override
    public boolean onNavigationItemSelected(MenuItem item) {
        return false;
    }

    @Override
    public void onPermissionGranted(int requestCode) {
        Log.i("anshul", "onPermissionGranted : " + requestCode);

    }

    @Override
    public void deniedPermissionAccess(int requestCode) {

        Log.i("anshul", "deniedPermissionAccess : " + requestCode);

    }

    @Override
    public void removedPermissionAccess(int requestCode) {
        Log.i("anshul", "removedPermissionAccess : " + requestCode);
    }
}

@@ -402,24 +402,98 @@
 Callback %7B%0A%0A
+    private final static String TAG= MainActivity.class.getSimpleName();%0A%0A
     private 
@@ -1746,30 +1746,27 @@
      Log.i(%22
-anshul
+TAG
 %22, %22onPermis
@@ -1889,30 +1889,27 @@
      Log.i(%22
-anshul
+TAG
 %22, %22deniedPe
@@ -2043,14 +2043,11 @@
 .i(%22
-anshul
+TAG
 %22, %22

remove unused code