package com.sliit.smartserviceassistant;

import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import androidx.cardview.widget.CardView;
import android.view.View;

public class UpComing extends AppCompatActivity {

    public static int a,b,c,d,e,f,g,h,i,j,k,L,M,N;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_up_coming);


        CardView cv_oil_filter = (CardView) findViewById(R.id.Oil_Filter);
        CardView cv_washer_plug_drain = (CardView) findViewById(R.id.Washer_Plug_Drain);
        CardView cv_Wheel_alignment_and_balance= (CardView) findViewById(R.id.WAaB);
        CardView cv_Fuel_filter= (CardView) findViewById(R.id.Fuel_Filter);
        CardView cv_Break_fluid= (CardView) findViewById(R.id.Brake_Fluid);
        CardView cv_Transmission_Fluid= (CardView) findViewById(R.id.Tf);
        CardView cv_clutch= (CardView) findViewById(R.id.Clutch);
        CardView cv_Engine_Oil= (CardView) findViewById(R.id.Engine_Oil);
        CardView cv_Dust_and_pollen_filter= (CardView) findViewById(R.id.Dust_and_Pollen_Filter);
        CardView cv_Air_clean_filter= (CardView) findViewById(R.id.Air_Clean_Filter);
        CardView cv_Spark_plug= (CardView) findViewById(R.id.Spark_Plug);
        CardView cv_Break_and_Clutch_oil= (CardView) findViewById(R.id.BaCO);
        CardView cv_Break_Pads= (CardView) findViewById(R.id.Bp);
        CardView cv_Coolant= (CardView) findViewById(R.id.Coolant);

       // cv_Coolant.setVisibility(View.VISIBLE);
        cv_oil_filter.setVisibility(View.VISIBLE);
        cv_washer_plug_drain.setVisibility(View.VISIBLE);
        cv_Wheel_alignment_and_balance.setVisibility(View.VISIBLE);
        cv_Fuel_filter.setVisibility(View.VISIBLE);
        cv_Break_fluid.setVisibility(View.VISIBLE);
        cv_Transmission_Fluid.setVisibility(View.VISIBLE);
        cv_clutch.setVisibility(View.VISIBLE);
        cv_Engine_Oil.setVisibility(View.VISIBLE);
        cv_Dust_and_pollen_filter.setVisibility(View.VISIBLE);
        cv_Air_clean_filter.setVisibility(View.VISIBLE);
        cv_Spark_plug.setVisibility(View.VISIBLE);
        cv_Break_and_Clutch_oil.setVisibility(View.VISIBLE);
        cv_Break_Pads.setVisibility(View.VISIBLE);
        cv_Coolant.setVisibility(View.VISIBLE);








        cv_oil_filter.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=1;b=0;c=0;d=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;L=0;M=0;N=0;
                System.out.println("hy");
                setContentView(R.layout.oil_filter);
               startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);

            }
        });
        cv_washer_plug_drain.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=1;c=0;d=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Wheel_alignment_and_balance.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=1;d=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Fuel_filter.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=1;e=0;f=0;g=0;h=0;i=0;j=0;k=0;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Break_fluid.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=1;f=0;g=0;h=0;i=0;j=0;k=0;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Transmission_Fluid.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=0;f=1;g=0;h=0;i=0;j=0;k=0;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_clutch.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=0;f=0;g=1;h=0;i=0;j=0;k=0;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Engine_Oil.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=0;f=0;g=0;h=1;i=0;j=0;k=0;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Dust_and_pollen_filter.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=0;f=0;g=0;h=0;i=1;j=0;k=0;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Air_clean_filter.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=0;f=0;g=0;h=0;i=0;j=1;k=0;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Spark_plug.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=0;f=0;g=0;h=0;i=0;j=0;k=1;L=0;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Break_and_Clutch_oil.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;L=1;M=0;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Break_Pads.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;L=0;M=1;N=0;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });
        cv_Coolant.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                a=0;b=0;c=0;d=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;L=0;M=0;N=1;
                startActivityForResult(new Intent(UpComing.this,Changers_in_two.class), 0);            }
        });



//        if(oil_filter==0){
//            cv_oil_filter.setVisibility(View.GONE);
//        }
//        else{
//            cv_oil_filter.setVisibility(View.VISIBLE);
//
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//////////////////////////////////////////////////////////////////////////////////////////////////
//        if(washer_plug_drain==0){
//            cv_washer_plug_drain.setVisibility(View.GONE);
//        }
//        else{
//            cv_washer_plug_drain.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Wheel_alignment_and_balance==0){
//            cv_Wheel_alignment_and_balance.setVisibility(View.GONE);
//        }
//        else{
//            cv_Wheel_alignment_and_balance.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Fuel_filter==0){
//            cv_Fuel_filter.setVisibility(View.GONE);
//        }
//        else{
//            cv_Fuel_filter.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Break_fluid==0){
//            cv_Break_fluid.setVisibility(View.GONE);
//        }
//        else{
//            cv_Break_fluid.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//        //////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Transmission_Fluid==0){
//            cv_Transmission_Fluid.setVisibility(View.GONE);
//        }
//        else{
//            cv_Transmission_Fluid.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//        //////////////////////////////////////////////////////////////////////////////////////////////////
//        if(clutch==0){
//            cv_clutch.setVisibility(View.GONE);
//        }
//        else{
//            cv_clutch.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//        //////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Engine_Oil==0){
//            cv_Engine_Oil.setVisibility(View.GONE);
//        }
//        else{
//            cv_Engine_Oil.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//        //////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Dust_and_pollen_filter==0){
//            cv_Dust_and_pollen_filter.setVisibility(View.GONE);
//        }
//        else{
//            cv_Dust_and_pollen_filter.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//        //////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Air_clean_filter==0){
//            cv_Air_clean_filter.setVisibility(View.GONE);
//        }
//        else{
//            cv_Air_clean_filter.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//        //////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Spark_plug==0){
//            cv_Spark_plug.setVisibility(View.GONE);
//        }
//        else{
//            cv_Spark_plug.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//        //////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Break_and_Clutch_oil==0){
//            cv_Break_and_Clutch_oil.setVisibility(View.GONE);
//        }
//        else{
//            cv_Break_and_Clutch_oil.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//        //////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Break_Pads==0){
//            cv_Break_Pads.setVisibility(View.GONE);
//        }
//        else{
//            cv_Break_Pads.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }
//        //////////////////////////////////////////////////////////////////////////////////////////////////
//        if(Coolant==0){
//            cv_Coolant.setVisibility(View.GONE);
//        }
//        else{
//            cv_Coolant.setVisibility(View.VISIBLE);
////                Toast.makeText(SuggestionAnswer.this, "hy1232", Toast.LENGTH_SHORT).show();
//        }








    }


}