/*
 * Copyright 2017, Flávio Keglevich
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.fkeglevich.rawdumper;

import android.os.Bundle;
import android.os.Handler;
import android.view.View;

import com.fkeglevich.rawdumper.activity.ModularActivity;
import com.fkeglevich.rawdumper.controller.feature.CameraLifetimeController;
import com.fkeglevich.rawdumper.ui.ModesInterface;

/**
 * Created by Flávio Keglevich on 29/08/2017.
 * TODO: Add a class header comment!
 */

@SuppressWarnings("unused")
public class MainActivity extends ModularActivity
{
    private ModesInterface modesInterface;
    //private DrawerController drawerController;
    private CameraLifetimeController cameraLifetimeController;

    private Handler handler;

    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        //getWindow().setBackgroundDrawable(null);
        setContentView(R.layout.activity_main);
        modesInterface = new ModesInterface(reference);

        //drawerController = new DrawerController(reference);
        cameraLifetimeController = new CameraLifetimeController(reference);

        //disable(findViewById(R.id.wbBt));
        //disable(findViewById(R.id.wbText));

        //handler = new Handler(Looper.getMainLooper());
        /*handler.post(new Runnable()
        {
            @Override
            public void run()
            {
                TextView view = (TextView) findViewById(R.id.wbText);
                view.setText(Arrays.toString(WhiteBalanceService.getInstance().getValue()));
                //view.setText(OrientationManager.getInstance().lastDegrees + "");
                handler.postDelayed(this, 100);
            }
        });*/
    }

    private void disable(View view)
    {
        view.setClickable(false);
        view.setAlpha(0.25f);
    }
}

/*
 * Copyright 2017, Flávio Keglevich
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.fkeglevich.rawdumper;

import android.os.Bundle;
import android.os.Handler;
import android.view.View;

import com.fkeglevich.rawdumper.activity.ModularActivity;
import com.fkeglevich.rawdumper.controller.feature.CameraLifetimeController;
import com.fkeglevich.rawdumper.ui.ModesInterface;

/**
 * Created by Flávio Keglevich on 29/08/2017.
 * TODO: Add a class header comment!
 */

@SuppressWarnings("unused")
public class MainActivity extends ModularActivity
{
    private ModesInterface modesInterface;
    //private DrawerController drawerController;
    private CameraLifetimeController cameraLifetimeController;

    private Handler handler;

    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        //getWindow().setBackgroundDrawable(null);
        setContentView(R.layout.activity_main);
        modesInterface = new ModesInterface(reference);

        //drawerController = new DrawerController(reference);
        cameraLifetimeController = new CameraLifetimeController(reference);

        //disable(findViewById(R.id.wbBt));
        //disable(findViewById(R.id.wbText));

        //handler = new Handler(Looper.getMainLooper());
        /*handler.post(new Runnable()
        {
            @Override
            public void run()
            {
                TextView view = (TextView) findViewById(R.id.wbText);
                view.setText(Arrays.toString(WhiteBalanceService.getInstance().getValue()));
                //view.setText(OrientationManager.getInstance().lastDegrees + "");
                handler.postDelayed(this, 100);
            }
        });*/
    }
}

Remove unused method