ZStore v1.7版本的 MD5 值为:ca9bb200afd8d690876bd39318f8215c

以下内容为反编译后的 HomeActivity.java 源代码,内容仅作参考


package com.zackiestudios.zstore;

import android.app.AlertDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.RippleDrawable;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.StateListDrawable;
import android.graphics.drawable.shapes.RoundRectShape;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.transition.AutoTransition;
import android.transition.TransitionManager;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.cardview.widget.CardView;
import androidx.constraintlayout.core.motion.utils.TypedValues;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.core.net.MailTo;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.exifinterface.media.ExifInterface;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.applovin.mediation.ads.MaxInterstitialAd;
import com.bumptech.glide.Glide;
import com.facebook.shimmer.ShimmerFrameLayout;
import com.google.android.gms.common.Scopes;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.google.android.material.bottomsheet.BottomSheetDialog;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.firebase.FirebaseApp;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.database.ChildEventListener;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.GenericTypeIndicator;
import com.google.firebase.database.Query;
import com.google.firebase.database.ValueEventListener;
import com.google.firebase.iid.InstanceIdResult;
import com.zackiestudios.zstore.RequestNetwork;
import de.hdodenhof.circleimageview.CircleImageView;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collections;
import java.util.HashMap;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
import org.apache.http.cookie.ClientCookie;

public class HomeActivity extends AppCompatActivity {
    private LinearLayout AdsB;
    private ChildEventListener _Ads_child_listener;
    private ChildEventListener _Contact_child_listener;
    private ChildEventListener _Users_child_listener;
    private AppBarLayout _app_bar;
    private OnCompleteListener<AuthResult> _auth_create_user_listener;
    private OnCompleteListener<Void> _auth_reset_password_listener;
    private OnCompleteListener<AuthResult> _auth_sign_in_listener;
    private CoordinatorLayout _coordinator;
    private DrawerLayout _drawer;
    private LinearLayout _drawer_about;
    private CardView _drawer_cardview1s;
    private TextView _drawer_emails;
    private ImageView _drawer_facebook;
    private ImageView _drawer_imageview1;
    private ImageView _drawer_imageview11;
    private ImageView _drawer_imageview2;
    private ImageView _drawer_imageview6;
    private ImageView _drawer_imageview7;
    private ImageView _drawer_imageview8;
    private ImageView _drawer_imageview9;
    private LinearLayout _drawer_jsonn;
    private LinearLayout _drawer_linear1;
    private LinearLayout _drawer_linear13;
    private LinearLayout _drawer_linear2;
    private LinearLayout _drawer_linear24;
    private LinearLayout _drawer_linear26;
    private LinearLayout _drawer_linear_profiless;
    private TextView _drawer_name2s;
    private TextView _drawer_names;
    private LinearLayout _drawer_notifications;
    private LinearLayout _drawer_privacy;
    private LinearLayout _drawer_profile;
    private ImageView _drawer_profile_pics;
    private LinearLayout _drawer_profileviews;
    private TextView _drawer_security;
    private TextView _drawer_socialmedia;
    private LinearLayout _drawer_support;
    private ImageView _drawer_telegram;
    private TextView _drawer_textview10;
    private TextView _drawer_textview13;
    private TextView _drawer_textview17;
    private TextView _drawer_textview19;
    private TextView _drawer_textview4;
    private TextView _drawer_textview5;
    private TextView _drawer_textview9;
    private ScrollView _drawer_vscroll1;
    private ImageView _drawer_youtube;
    private FloatingActionButton _fab;
    private ChildEventListener _maintenance_child_listener;
    private RequestNetwork.RequestListener _network_request_listener;
    private ChildEventListener _normal_child_listener;
    private ChildEventListener _premium_child_listener;
    private Toolbar _toolbar;
    private ChildEventListener _update_child_listener;
    private FirebaseAuth auth;
    private OnCompleteListener<Void> auth_deleteUserListener;
    private OnCompleteListener<Void> auth_emailVerificationSentListener;
    private OnCompleteListener<AuthResult> auth_googleSignInListener;
    private OnCompleteListener<AuthResult> auth_phoneAuthListener;
    private OnCompleteListener<Void> auth_updateEmailListener;
    private OnCompleteListener<Void> auth_updatePasswordListener;
    private OnCompleteListener<Void> auth_updateProfileListener;
    private LinearLayout b1;
    private LinearLayout b10;
    private LinearLayout b11;
    private LinearLayout b12;
    private LinearLayout b13;
    private LinearLayout b14;
    private LinearLayout b15;
    private LinearLayout b16;
    private LinearLayout b2;
    private LinearLayout b3;
    private LinearLayout b4;
    private LinearLayout b5;
    private LinearLayout b6;
    private LinearLayout b7;
    private LinearLayout b8;
    private LinearLayout b9;
    private BottomNavigationView bottomnavigation1;
    private CircleImageView circleimageview1;
    private SharedPreferences developer;
    private TextView editor_seemore;
    private ImageView i1;
    private ImageView i10;
    private ImageView i11;
    private ImageView i12;
    private ImageView i13;
    private ImageView i14;
    private ImageView i15;
    private ImageView i16;
    private ImageView i2;
    private ImageView i3;
    private ImageView i4;
    private ImageView i5;
    private ImageView i6;
    private ImageView i7;
    private ImageView i8;
    private ImageView i9;
    private ShimmerFrameLayout ic1;
    private ShimmerFrameLayout ic10;
    private ShimmerFrameLayout ic11;
    private ShimmerFrameLayout ic12;
    private ShimmerFrameLayout ic13;
    private ShimmerFrameLayout ic14;
    private ShimmerFrameLayout ic15;
    private ShimmerFrameLayout ic16;
    private ShimmerFrameLayout ic17;
    private ShimmerFrameLayout ic18;
    private ShimmerFrameLayout ic19;
    private ShimmerFrameLayout ic2;
    private ShimmerFrameLayout ic3;
    private ShimmerFrameLayout ic4;
    private ShimmerFrameLayout ic5;
    private ShimmerFrameLayout ic6;
    private ShimmerFrameLayout ic7;
    private ShimmerFrameLayout ic8;
    private ShimmerFrameLayout ic9;
    private ImageView imageview1;
    private ImageView imageview10;
    private ImageView imageview2;
    private ImageView imageview3;
    private ImageView imageview4;
    private ImageView imageview5;
    private ImageView imageview6;
    private ImageView imageview7;
    private ImageView imageview8;
    private ImageView imageview9;
    MaxInterstitialAd inter2;
    private LinearLayout linear1;
    private LinearLayout linear10;
    private ShimmerFrameLayout linear11;
    private ShimmerFrameLayout linear12;
    private ShimmerFrameLayout linear13;
    private ShimmerFrameLayout linear14;
    private LinearLayout linear15;
    private LinearLayout linear16;
    private LinearLayout linear17;
    private LinearLayout linear18;
    private LinearLayout linear2;
    private LinearLayout linear3;
    private LinearLayout linear4;
    private LinearLayout linear5;
    private LinearLayout linear6;
    private LinearLayout linear7;
    private LinearLayout linear8;
    private LinearLayout linear9;
    private LinearLayout linear_base;
    private LinearLayout linear_box1;
    private LinearLayout linear_box10;
    private LinearLayout linear_box11;
    private LinearLayout linear_box12;
    private LinearLayout linear_box13;
    private LinearLayout linear_box14;
    private LinearLayout linear_box15;
    private LinearLayout linear_box16;
    private LinearLayout linear_box17;
    private LinearLayout linear_box2;
    private LinearLayout linear_box3;
    private LinearLayout linear_box4;
    private LinearLayout linear_box5;
    private LinearLayout linear_box6;
    private LinearLayout linear_box7;
    private LinearLayout linear_box8;
    private LinearLayout linear_box9;
    private LinearLayout linear_category;
    private LinearLayout linear_editors;
    private LinearLayout linear_files1;
    private LinearLayout linear_files2;
    private LinearLayout linear_files3;
    private LinearLayout linear_files4;
    private LinearLayout linear_files5;
    private LinearLayout linear_files6;
    private LinearLayout linear_files7;
    private LinearLayout linear_files8;
    private LinearLayout linear_home;
    private LinearLayout linear_latest;
    private LinearLayout linear_most_liked;
    private ScrollView linear_navigation1;
    private LinearLayout linear_navigation2;
    private ScrollView linear_navigation3;
    private ScrollView linear_navigation4;
    private LinearLayout linear_navigations;
    private LinearLayout linear_profile;
    private LinearLayout linear_shimmer1;
    private LinearLayout linear_shimmer2;
    private LinearLayout linear_shimmer3;
    private LinearLayout linear_shimmer4;
    private LinearLayout linear_toolbar;
    private LinearLayout linear_trending;
    private OnCompleteListener messaging_onCompleteListener;
    private TextView name2;
    private RequestNetwork network;
    private LinearLayout profileview;
    private ProgressBar progressbar_premium;
    Query query1;
    Query query2;
    Query query3;
    private RecyclerView recyclerview_editors;
    private RecyclerView recyclerview_latest;
    private RecyclerView recyclerview_liked;
    private RecyclerView recyclerview_premium;
    private RecyclerView recyclerview_trending;
    private TextView t10;
    private TextView t11;
    private TextView t12;
    private TextView t13;
    private TextView t14;
    private TextView t15;
    private TextView t16;
    private TextView t17;
    private TextView t2;
    private TextView t3;
    private TextView t4;
    private TextView t5;
    private TextView t6;
    private TextView t7;
    private TextView t8;
    private TextView t9;
    private TextView textview1;
    private TextView textview10;
    private TextView textview11;
    private TextView textview12;
    private TextView textview13;
    private TextView textview14;
    private TextView textview15;
    private TextView textview16;
    private TextView textview17;
    private TextView textview18;
    private TextView textview19;
    private TextView textview5;
    private TextView textview6;
    private TextView textview7;
    private TextView textview8;
    private TextView textview9;
    private TimerTask timer;
    private ShimmerFrameLayout tt1;
    private ShimmerFrameLayout tt10;
    private ShimmerFrameLayout tt11;
    private ShimmerFrameLayout tt12;
    private ShimmerFrameLayout tt13;
    private ShimmerFrameLayout tt14;
    private ShimmerFrameLayout tt15;
    private ShimmerFrameLayout tt2;
    private ShimmerFrameLayout tt3;
    private ShimmerFrameLayout tt4;
    private ShimmerFrameLayout tt5;
    private ShimmerFrameLayout tt6;
    private ShimmerFrameLayout tt7;
    private ShimmerFrameLayout tt8;
    private ShimmerFrameLayout tt9;
    private SharedPreferences users;
    private Timer _timer = new Timer();
    private FirebaseDatabase _firebase = FirebaseDatabase.getInstance();
    private double limit = 0.0d;
    private String key = "";
    private String str1 = "";
    private String str2 = "";
    private String str3 = "";
    private String str4 = "";
    private String verify_user = "";
    private HashMap<String, Object> seen = new HashMap<>();
    private String packageName = "";
    private String app_version = "";
    private double exit = 0.0d;
    private String share = "";
    private String subject = "";
    private String body = "";
    private String maintenanc = "";
    private boolean data2 = false;
    private String Facebook = "";
    private String YouTube = "";
    private String Telegram = "";
    private String About = "";
    private String Privacy = "";
    private String BlockUs = "";
    private String Banner = "";
    private String Interstitial = "";
    private String Reward = "";
    private ArrayList<HashMap<String, Object>> trending_projects = new ArrayList<>();
    private ArrayList<HashMap<String, Object>> new_projects = new ArrayList<>();
    private ArrayList<HashMap<String, Object>> editors_choice_projects = new ArrayList<>();
    private ArrayList<HashMap<String, Object>> premium_projects = new ArrayList<>();
    private ArrayList<HashMap<String, Object>> yt_map = new ArrayList<>();
    private DatabaseReference Users = this._firebase.getReference("Users");
    private Intent intent = new Intent();
    private DatabaseReference normal = this._firebase.getReference("projects/normal");
    private DatabaseReference premium = this._firebase.getReference("projects/premium");
    private Calendar cal = Calendar.getInstance();
    private Intent web_jump = new Intent();
    private Intent i = new Intent();
    private DatabaseReference update = this._firebase.getReference("other/update");
    private DatabaseReference maintenance = this._firebase.getReference("other/maintenance");
    private Intent web = new Intent();
    private DatabaseReference Contact = this._firebase.getReference("CT");
    private DatabaseReference Ads = this._firebase.getReference("Net");
    ValueEventListener valueEventListener1 = new ValueEventListener() {
        @Override
        public void onCancelled(DatabaseError databaseError) {
        }

        @Override
        public void onDataChange(DataSnapshot dataSnapshot) {
            try {
                HomeActivity.this.str1 = "";
                HomeActivity.this.new_projects.clear();
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                for (DataSnapshot dataSnapshot2 : dataSnapshot.getChildren()) {
                    HomeActivity.this.str1 = dataSnapshot2.getKey();
                    HomeActivity.this.new_projects.add((HashMap) dataSnapshot2.getValue(genericTypeIndicator));
                }
                Collections.reverse(HomeActivity.this.new_projects);
                RecyclerView recyclerView = HomeActivity.this.recyclerview_latest;
                HomeActivity homeActivity = HomeActivity.this;
                recyclerView.setAdapter(new Recyclerview_latestAdapter(homeActivity.new_projects));
                HomeActivity homeActivity2 = HomeActivity.this;
                homeActivity2._TransitionManager(homeActivity2.linear_latest, 50.0d);
                HomeActivity.this.linear_shimmer2.setVisibility(8);
            } catch (Exception e) {
                HomeActivity.this.showMessage(e.toString());
            }
        }
    };
    ValueEventListener valueEventListener2 = new ValueEventListener() {
        @Override
        public void onCancelled(DatabaseError databaseError) {
        }

        @Override
        public void onDataChange(DataSnapshot dataSnapshot) {
            try {
                HomeActivity.this.str2 = "";
                HomeActivity.this.editors_choice_projects.clear();
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                for (DataSnapshot dataSnapshot2 : dataSnapshot.getChildren()) {
                    HomeActivity.this.str2 = dataSnapshot2.getKey();
                    HomeActivity.this.editors_choice_projects.add((HashMap) dataSnapshot2.getValue(genericTypeIndicator));
                }
                Collections.reverse(HomeActivity.this.editors_choice_projects);
                RecyclerView recyclerView = HomeActivity.this.recyclerview_editors;
                HomeActivity homeActivity = HomeActivity.this;
                recyclerView.setAdapter(new Recyclerview_editorsAdapter(homeActivity.editors_choice_projects));
                HomeActivity homeActivity2 = HomeActivity.this;
                homeActivity2._TransitionManager(homeActivity2.linear_editors, 50.0d);
                HomeActivity.this.linear_shimmer1.setVisibility(8);
            } catch (Exception e) {
                HomeActivity.this.showMessage(e.toString());
            }
        }
    };
    ValueEventListener valueEventListener3 = new ValueEventListener() {
        @Override
        public void onCancelled(DatabaseError databaseError) {
        }

        @Override
        public void onDataChange(DataSnapshot dataSnapshot) {
            try {
                HomeActivity.this.str3 = "";
                HomeActivity.this.trending_projects.clear();
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                for (DataSnapshot dataSnapshot2 : dataSnapshot.getChildren()) {
                    HomeActivity.this.str3 = dataSnapshot2.getKey();
                    HomeActivity.this.trending_projects.add((HashMap) dataSnapshot2.getValue(genericTypeIndicator));
                }
                Collections.reverse(HomeActivity.this.trending_projects);
                RecyclerView recyclerView = HomeActivity.this.recyclerview_trending;
                HomeActivity homeActivity = HomeActivity.this;
                recyclerView.setAdapter(new Recyclerview_trendingAdapter(homeActivity.trending_projects));
                HomeActivity homeActivity2 = HomeActivity.this;
                homeActivity2._TransitionManager(homeActivity2.linear_trending, 50.0d);
                HomeActivity.this.linear_shimmer3.setVisibility(8);
            } catch (Exception e) {
                HomeActivity.this.showMessage(e.toString());
            }
        }
    };

    public void drawableclass() {
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.home);
        initialize(bundle);
        FirebaseApp.initializeApp(this);
        initializeLogic();
    }

    private void initialize(Bundle bundle) {
        this._app_bar = (AppBarLayout) findViewById(R.id._app_bar);
        this._coordinator = (CoordinatorLayout) findViewById(R.id._coordinator);
        Toolbar toolbar = (Toolbar) findViewById(R.id._toolbar);
        this._toolbar = toolbar;
        setSupportActionBar(toolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        getSupportActionBar().setHomeButtonEnabled(true);
        this._toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.onBackPressed();
            }
        });
        this._fab = (FloatingActionButton) findViewById(R.id._fab);
        this._drawer = (DrawerLayout) findViewById(R.id._drawer);
        ActionBarDrawerToggle actionBarDrawerToggle = new ActionBarDrawerToggle(this, this._drawer, this._toolbar, R.string.app_name, R.string.app_name);
        this._drawer.addDrawerListener(actionBarDrawerToggle);
        actionBarDrawerToggle.syncState();
        LinearLayout linearLayout = (LinearLayout) findViewById(R.id._nav_view);
        this.linear_base = (LinearLayout) findViewById(R.id.linear_base);
        this.bottomnavigation1 = (BottomNavigationView) findViewById(R.id.bottomnavigation1);
        this.linear1 = (LinearLayout) findViewById(R.id.linear1);
        this.linear_toolbar = (LinearLayout) findViewById(R.id.linear_toolbar);
        this.linear_navigations = (LinearLayout) findViewById(R.id.linear_navigations);
        this.imageview1 = (ImageView) findViewById(R.id.imageview1);
        this.textview1 = (TextView) findViewById(R.id.textview1);
        this.imageview10 = (ImageView) findViewById(R.id.imageview10);
        this.linear_profile = (LinearLayout) findViewById(R.id.linear_profile);
        this.circleimageview1 = (CircleImageView) findViewById(R.id.circleimageview1);
        this.profileview = (LinearLayout) findViewById(R.id.profileview);
        this.name2 = (TextView) findViewById(R.id.name2);
        this.linear_navigation1 = (ScrollView) findViewById(R.id.linear_navigation1);
        this.linear_navigation2 = (LinearLayout) findViewById(R.id.linear_navigation2);
        this.linear_navigation3 = (ScrollView) findViewById(R.id.linear_navigation3);
        this.linear_navigation4 = (ScrollView) findViewById(R.id.linear_navigation4);
        this.linear_home = (LinearLayout) findViewById(R.id.linear_home);
        this.linear_editors = (LinearLayout) findViewById(R.id.linear_editors);
        this.AdsB = (LinearLayout) findViewById(R.id.AdsB);
        this.linear_latest = (LinearLayout) findViewById(R.id.linear_latest);
        this.linear_trending = (LinearLayout) findViewById(R.id.linear_trending);
        this.linear_most_liked = (LinearLayout) findViewById(R.id.linear_most_liked);
        this.linear2 = (LinearLayout) findViewById(R.id.linear2);
        this.linear_shimmer1 = (LinearLayout) findViewById(R.id.linear_shimmer1);
        this.recyclerview_editors = (RecyclerView) findViewById(R.id.recyclerview_editors);
        this.textview5 = (TextView) findViewById(R.id.textview5);
        this.editor_seemore = (TextView) findViewById(R.id.editor_seemore);
        this.linear_box6 = (LinearLayout) findViewById(R.id.linear_box6);
        this.linear_box7 = (LinearLayout) findViewById(R.id.linear_box7);
        this.ic6 = (ShimmerFrameLayout) findViewById(R.id.ic6);
        this.linear7 = (LinearLayout) findViewById(R.id.linear7);
        this.ic7 = (ShimmerFrameLayout) findViewById(R.id.ic7);
        this.linear9 = (LinearLayout) findViewById(R.id.linear9);
        this.linear13 = (ShimmerFrameLayout) findViewById(R.id.linear13);
        this.linear14 = (ShimmerFrameLayout) findViewById(R.id.linear14);
        this.ic8 = (ShimmerFrameLayout) findViewById(R.id.ic8);
        this.linear8 = (LinearLayout) findViewById(R.id.linear8);
        this.ic9 = (ShimmerFrameLayout) findViewById(R.id.ic9);
        this.linear10 = (LinearLayout) findViewById(R.id.linear10);
        this.linear11 = (ShimmerFrameLayout) findViewById(R.id.linear11);
        this.linear12 = (ShimmerFrameLayout) findViewById(R.id.linear12);
        this.linear3 = (LinearLayout) findViewById(R.id.linear3);
        this.linear_shimmer2 = (LinearLayout) findViewById(R.id.linear_shimmer2);
        this.recyclerview_latest = (RecyclerView) findViewById(R.id.recyclerview_latest);
        this.textview6 = (TextView) findViewById(R.id.textview6);
        this.textview7 = (TextView) findViewById(R.id.textview7);
        this.linear_box1 = (LinearLayout) findViewById(R.id.linear_box1);
        this.linear_box2 = (LinearLayout) findViewById(R.id.linear_box2);
        this.linear_box3 = (LinearLayout) findViewById(R.id.linear_box3);
        this.linear_box4 = (LinearLayout) findViewById(R.id.linear_box4);
        this.linear_box5 = (LinearLayout) findViewById(R.id.linear_box5);
        this.ic1 = (ShimmerFrameLayout) findViewById(R.id.ic1);
        this.tt1 = (ShimmerFrameLayout) findViewById(R.id.tt1);
        this.ic2 = (ShimmerFrameLayout) findViewById(R.id.ic2);
        this.tt2 = (ShimmerFrameLayout) findViewById(R.id.tt2);
        this.ic3 = (ShimmerFrameLayout) findViewById(R.id.ic3);
        this.tt3 = (ShimmerFrameLayout) findViewById(R.id.tt3);
        this.ic4 = (ShimmerFrameLayout) findViewById(R.id.ic4);
        this.tt4 = (ShimmerFrameLayout) findViewById(R.id.tt4);
        this.ic5 = (ShimmerFrameLayout) findViewById(R.id.ic5);
        this.tt5 = (ShimmerFrameLayout) findViewById(R.id.tt5);
        this.linear4 = (LinearLayout) findViewById(R.id.linear4);
        this.linear_shimmer3 = (LinearLayout) findViewById(R.id.linear_shimmer3);
        this.recyclerview_trending = (RecyclerView) findViewById(R.id.recyclerview_trending);
        this.textview8 = (TextView) findViewById(R.id.textview8);
        this.textview9 = (TextView) findViewById(R.id.textview9);
        this.linear_box8 = (LinearLayout) findViewById(R.id.linear_box8);
        this.linear_box9 = (LinearLayout) findViewById(R.id.linear_box9);
        this.linear_box10 = (LinearLayout) findViewById(R.id.linear_box10);
        this.linear_box11 = (LinearLayout) findViewById(R.id.linear_box11);
        this.linear_box12 = (LinearLayout) findViewById(R.id.linear_box12);
        this.ic10 = (ShimmerFrameLayout) findViewById(R.id.ic10);
        this.tt6 = (ShimmerFrameLayout) findViewById(R.id.tt6);
        this.ic11 = (ShimmerFrameLayout) findViewById(R.id.ic11);
        this.tt7 = (ShimmerFrameLayout) findViewById(R.id.tt7);
        this.ic12 = (ShimmerFrameLayout) findViewById(R.id.ic12);
        this.tt8 = (ShimmerFrameLayout) findViewById(R.id.tt8);
        this.ic13 = (ShimmerFrameLayout) findViewById(R.id.ic13);
        this.tt9 = (ShimmerFrameLayout) findViewById(R.id.tt9);
        this.ic14 = (ShimmerFrameLayout) findViewById(R.id.ic14);
        this.tt10 = (ShimmerFrameLayout) findViewById(R.id.tt10);
        this.linear5 = (LinearLayout) findViewById(R.id.linear5);
        this.linear_shimmer4 = (LinearLayout) findViewById(R.id.linear_shimmer4);
        this.recyclerview_liked = (RecyclerView) findViewById(R.id.recyclerview_liked);
        this.textview10 = (TextView) findViewById(R.id.textview10);
        this.textview11 = (TextView) findViewById(R.id.textview11);
        this.linear_box13 = (LinearLayout) findViewById(R.id.linear_box13);
        this.linear_box14 = (LinearLayout) findViewById(R.id.linear_box14);
        this.linear_box15 = (LinearLayout) findViewById(R.id.linear_box15);
        this.linear_box16 = (LinearLayout) findViewById(R.id.linear_box16);
        this.linear_box17 = (LinearLayout) findViewById(R.id.linear_box17);
        this.ic15 = (ShimmerFrameLayout) findViewById(R.id.ic15);
        this.tt11 = (ShimmerFrameLayout) findViewById(R.id.tt11);
        this.ic16 = (ShimmerFrameLayout) findViewById(R.id.ic16);
        this.tt12 = (ShimmerFrameLayout) findViewById(R.id.tt12);
        this.ic17 = (ShimmerFrameLayout) findViewById(R.id.ic17);
        this.tt13 = (ShimmerFrameLayout) findViewById(R.id.tt13);
        this.ic18 = (ShimmerFrameLayout) findViewById(R.id.ic18);
        this.tt14 = (ShimmerFrameLayout) findViewById(R.id.tt14);
        this.ic19 = (ShimmerFrameLayout) findViewById(R.id.ic19);
        this.tt15 = (ShimmerFrameLayout) findViewById(R.id.tt15);
        this.recyclerview_premium = (RecyclerView) findViewById(R.id.recyclerview_premium);
        this.progressbar_premium = (ProgressBar) findViewById(R.id.progressbar_premium);
        this.linear6 = (LinearLayout) findViewById(R.id.linear6);
        this.linear15 = (LinearLayout) findViewById(R.id.linear15);
        this.linear16 = (LinearLayout) findViewById(R.id.linear16);
        this.linear17 = (LinearLayout) findViewById(R.id.linear17);
        this.linear18 = (LinearLayout) findViewById(R.id.linear18);
        this.linear_files1 = (LinearLayout) findViewById(R.id.linear_files1);
        this.linear_files2 = (LinearLayout) findViewById(R.id.linear_files2);
        this.imageview2 = (ImageView) findViewById(R.id.imageview2);
        this.textview12 = (TextView) findViewById(R.id.textview12);
        this.imageview3 = (ImageView) findViewById(R.id.imageview3);
        this.textview13 = (TextView) findViewById(R.id.textview13);
        this.linear_files3 = (LinearLayout) findViewById(R.id.linear_files3);
        this.linear_files4 = (LinearLayout) findViewById(R.id.linear_files4);
        this.imageview4 = (ImageView) findViewById(R.id.imageview4);
        this.textview14 = (TextView) findViewById(R.id.textview14);
        this.imageview5 = (ImageView) findViewById(R.id.imageview5);
        this.textview15 = (TextView) findViewById(R.id.textview15);
        this.linear_files5 = (LinearLayout) findViewById(R.id.linear_files5);
        this.linear_files6 = (LinearLayout) findViewById(R.id.linear_files6);
        this.imageview6 = (ImageView) findViewById(R.id.imageview6);
        this.textview16 = (TextView) findViewById(R.id.textview16);
        this.imageview7 = (ImageView) findViewById(R.id.imageview7);
        this.textview17 = (TextView) findViewById(R.id.textview17);
        this.linear_files7 = (LinearLayout) findViewById(R.id.linear_files7);
        this.linear_files8 = (LinearLayout) findViewById(R.id.linear_files8);
        this.imageview8 = (ImageView) findViewById(R.id.imageview8);
        this.textview18 = (TextView) findViewById(R.id.textview18);
        this.imageview9 = (ImageView) findViewById(R.id.imageview9);
        this.textview19 = (TextView) findViewById(R.id.textview19);
        this.linear_category = (LinearLayout) findViewById(R.id.linear_category);
        this.b1 = (LinearLayout) findViewById(R.id.b1);
        this.b2 = (LinearLayout) findViewById(R.id.b2);
        this.b3 = (LinearLayout) findViewById(R.id.b3);
        this.b4 = (LinearLayout) findViewById(R.id.b4);
        this.b5 = (LinearLayout) findViewById(R.id.b5);
        this.b6 = (LinearLayout) findViewById(R.id.b6);
        this.b7 = (LinearLayout) findViewById(R.id.b7);
        this.b8 = (LinearLayout) findViewById(R.id.b8);
        this.b9 = (LinearLayout) findViewById(R.id.b9);
        this.b10 = (LinearLayout) findViewById(R.id.b10);
        this.b11 = (LinearLayout) findViewById(R.id.b11);
        this.b12 = (LinearLayout) findViewById(R.id.b12);
        this.b13 = (LinearLayout) findViewById(R.id.b13);
        this.b14 = (LinearLayout) findViewById(R.id.b14);
        this.b15 = (LinearLayout) findViewById(R.id.b15);
        this.b16 = (LinearLayout) findViewById(R.id.b16);
        this.i1 = (ImageView) findViewById(R.id.i1);
        this.t2 = (TextView) findViewById(R.id.t2);
        this.i2 = (ImageView) findViewById(R.id.i2);
        this.t3 = (TextView) findViewById(R.id.t3);
        this.i3 = (ImageView) findViewById(R.id.i3);
        this.t4 = (TextView) findViewById(R.id.t4);
        this.i4 = (ImageView) findViewById(R.id.i4);
        this.t5 = (TextView) findViewById(R.id.t5);
        this.i5 = (ImageView) findViewById(R.id.i5);
        this.t6 = (TextView) findViewById(R.id.t6);
        this.i6 = (ImageView) findViewById(R.id.i6);
        this.t7 = (TextView) findViewById(R.id.t7);
        this.i7 = (ImageView) findViewById(R.id.i7);
        this.t8 = (TextView) findViewById(R.id.t8);
        this.i8 = (ImageView) findViewById(R.id.i8);
        this.t9 = (TextView) findViewById(R.id.t9);
        this.i9 = (ImageView) findViewById(R.id.i9);
        this.t10 = (TextView) findViewById(R.id.t10);
        this.i10 = (ImageView) findViewById(R.id.i10);
        this.t11 = (TextView) findViewById(R.id.t11);
        this.i11 = (ImageView) findViewById(R.id.i11);
        this.t12 = (TextView) findViewById(R.id.t12);
        this.i12 = (ImageView) findViewById(R.id.i12);
        this.t13 = (TextView) findViewById(R.id.t13);
        this.i13 = (ImageView) findViewById(R.id.i13);
        this.t14 = (TextView) findViewById(R.id.t14);
        this.i14 = (ImageView) findViewById(R.id.i14);
        this.t15 = (TextView) findViewById(R.id.t15);
        this.i15 = (ImageView) findViewById(R.id.i15);
        this.t16 = (TextView) findViewById(R.id.t16);
        this.i16 = (ImageView) findViewById(R.id.i16);
        this.t17 = (TextView) findViewById(R.id.t17);
        this._drawer_linear1 = (LinearLayout) linearLayout.findViewById(R.id.linear1);
        this._drawer_vscroll1 = (ScrollView) linearLayout.findViewById(R.id.vscroll1);
        this._drawer_linear2 = (LinearLayout) linearLayout.findViewById(R.id.linear2);
        this._drawer_linear24 = (LinearLayout) linearLayout.findViewById(R.id.linear24);
        this._drawer_profile = (LinearLayout) linearLayout.findViewById(R.id.profile);
        this._drawer_notifications = (LinearLayout) linearLayout.findViewById(R.id.notifications);
        this._drawer_jsonn = (LinearLayout) linearLayout.findViewById(R.id.jsonn);
        this._drawer_linear26 = (LinearLayout) linearLayout.findViewById(R.id.linear26);
        this._drawer_about = (LinearLayout) linearLayout.findViewById(R.id.about);
        this._drawer_security = (TextView) linearLayout.findViewById(R.id.security);
        this._drawer_privacy = (LinearLayout) linearLayout.findViewById(R.id.privacy);
        this._drawer_support = (LinearLayout) linearLayout.findViewById(R.id.support);
        this._drawer_socialmedia = (TextView) linearLayout.findViewById(R.id.socialmedia);
        this._drawer_linear13 = (LinearLayout) linearLayout.findViewById(R.id.linear13);
        this._drawer_linear_profiless = (LinearLayout) linearLayout.findViewById(R.id.linear_profiless);
        this._drawer_names = (TextView) linearLayout.findViewById(R.id.names);
        this._drawer_emails = (TextView) linearLayout.findViewById(R.id.emails);
        this._drawer_profileviews = (LinearLayout) linearLayout.findViewById(R.id.profileviews);
        this._drawer_cardview1s = (CardView) linearLayout.findViewById(R.id.cardview1s);
        this._drawer_name2s = (TextView) linearLayout.findViewById(R.id.name2s);
        this._drawer_profile_pics = (ImageView) linearLayout.findViewById(R.id.profile_pics);
        this._drawer_imageview1 = (ImageView) linearLayout.findViewById(R.id.imageview1);
        this._drawer_textview4 = (TextView) linearLayout.findViewById(R.id.textview4);
        this._drawer_imageview2 = (ImageView) linearLayout.findViewById(R.id.imageview2);
        this._drawer_textview5 = (TextView) linearLayout.findViewById(R.id.textview5);
        this._drawer_imageview9 = (ImageView) linearLayout.findViewById(R.id.imageview9);
        this._drawer_textview17 = (TextView) linearLayout.findViewById(R.id.textview17);
        this._drawer_imageview11 = (ImageView) linearLayout.findViewById(R.id.imageview11);
        this._drawer_textview19 = (TextView) linearLayout.findViewById(R.id.textview19);
        this._drawer_imageview6 = (ImageView) linearLayout.findViewById(R.id.imageview6);
        this._drawer_textview13 = (TextView) linearLayout.findViewById(R.id.textview13);
        this._drawer_imageview7 = (ImageView) linearLayout.findViewById(R.id.imageview7);
        this._drawer_textview9 = (TextView) linearLayout.findViewById(R.id.textview9);
        this._drawer_imageview8 = (ImageView) linearLayout.findViewById(R.id.imageview8);
        this._drawer_textview10 = (TextView) linearLayout.findViewById(R.id.textview10);
        this._drawer_facebook = (ImageView) linearLayout.findViewById(R.id.facebook);
        this._drawer_youtube = (ImageView) linearLayout.findViewById(R.id.youtube);
        this._drawer_telegram = (ImageView) linearLayout.findViewById(R.id.telegram);
        this.users = getSharedPreferences("users", 0);
        this.auth = FirebaseAuth.getInstance();
        this.developer = getSharedPreferences("developer", 0);
        this.network = new RequestNetwork(this);
        this.bottomnavigation1.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
            @Override
            public boolean onNavigationItemSelected(MenuItem menuItem) {
                int itemId = menuItem.getItemId();
                if (itemId == 0) {
                    HomeActivity homeActivity = HomeActivity.this;
                    homeActivity._TransitionManager(homeActivity.linear1, 150.0d);
                    HomeActivity.this.linear_navigation1.setVisibility(0);
                    HomeActivity.this.linear_navigation2.setVisibility(8);
                    HomeActivity.this.linear_navigation3.setVisibility(8);
                    HomeActivity.this.linear_navigation4.setVisibility(8);
                    HomeActivity.this._fab.hide();
                    HomeActivity.this.linear_toolbar.setVisibility(0);
                    HomeActivity.this.textview1.setText("Procurar Aplicativos");
                    HomeActivity.this.textview1.setEnabled(true);
                }
                if (itemId == 1) {
                    HomeActivity homeActivity2 = HomeActivity.this;
                    homeActivity2._TransitionManager(homeActivity2.linear1, 150.0d);
                    HomeActivity.this.linear_navigation1.setVisibility(8);
                    HomeActivity.this.linear_navigation2.setVisibility(0);
                    HomeActivity.this.linear_navigation3.setVisibility(8);
                    HomeActivity.this.linear_navigation4.setVisibility(8);
                    HomeActivity.this._fab.hide();
                    HomeActivity.this.linear_toolbar.setVisibility(0);
                    HomeActivity.this.textview1.setText("Aplicativos Premium");
                    HomeActivity.this.textview1.setEnabled(false);
                }
                return true;
            }
        });
        this.imageview1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this._drawer.openDrawer(GravityCompat.START);
            }
        });
        this.textview1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), SearchActivity.class);
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
            }
        });
        this.imageview10.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), TutorialActivity.class);
                    HomeActivity homeActivity = HomeActivity.this;
                    homeActivity.startActivity(homeActivity.intent);
                    HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
                    return;
                }
                SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem conexão com a Internet!");
            }
        });
        this.linear_profile.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    if (!HomeActivity.this.verify_user.equals("")) {
                        HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), AccountActivity.class);
                        HomeActivity.this.developer.edit().putString("uid", FirebaseAuth.getInstance().getCurrentUser().getUid()).commit();
                        return;
                    } else {
                        SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Algo errado com sua conta.");
                        return;
                    }
                }
                SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem internet");
            }
        });
        this.editor_seemore.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity._click_effect(homeActivity.editor_seemore, "#BDBDBD");
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), ViewAllActivity.class);
                HomeActivity.this.intent.putExtra("title", "Escolha dos Editores");
                HomeActivity.this.intent.putExtra("mode", "editors_choice");
                HomeActivity homeActivity2 = HomeActivity.this;
                homeActivity2.startActivity(homeActivity2.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.textview7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity._click_effect(homeActivity.textview7, "#BDBDBD");
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), ViewAllActivity.class);
                HomeActivity.this.intent.putExtra("title", "Novos & Atualizados");
                HomeActivity.this.intent.putExtra("mode", "latest");
                HomeActivity homeActivity2 = HomeActivity.this;
                homeActivity2.startActivity(homeActivity2.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.textview9.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity._click_effect(homeActivity.textview9, "#BDBDBD");
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), ViewAllActivity.class);
                HomeActivity.this.intent.putExtra("title", "Tendências");
                HomeActivity.this.intent.putExtra("mode", "trending");
                HomeActivity homeActivity2 = HomeActivity.this;
                homeActivity2.startActivity(homeActivity2.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.linear_files1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Em Breve");
                } else {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Internet");
                }
            }
        });
        this.linear_files2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CodesActivity.class);
                    HomeActivity homeActivity = HomeActivity.this;
                    homeActivity.startActivity(homeActivity.intent);
                    HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
                    return;
                }
                SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Internet");
            }
        });
        this.linear_files3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Em Breve");
                } else {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Internet");
                }
            }
        });
        this.linear_files4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Em Breve");
                } else {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Internet");
                }
            }
        });
        this.linear_files5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Em Breve");
                } else {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Internet");
                }
            }
        });
        this.linear_files6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Em Breve");
                } else {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Internet");
                }
            }
        });
        this.linear_files7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Em Breve");
                } else {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Internet");
                }
            }
        });
        this.linear_files8.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Em Breve");
                } else {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Internet");
                }
            }
        });
        this.b1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Livros & Referências");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Negócios");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Comunicação");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Educação");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Entretenimento");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Exemplos & Tutoriais ");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Jogos");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b8.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Vários dispositivos");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b9.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Música & Áudio");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b10.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Outros");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b11.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Fotografia");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b12.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Produtividade");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b13.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Social");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b14.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Ferramentas");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b15.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Ui & Design");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.b16.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), CategoryActivity.class);
                HomeActivity.this.intent.putExtra("title", "Videografia");
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this.messaging_onCompleteListener = new OnCompleteListener<InstanceIdResult>() {
            @Override
            public void onComplete(Task<InstanceIdResult> task) {
                task.isSuccessful();
                task.getResult().getToken();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        ChildEventListener childEventListener = new ChildEventListener() {
            @Override
            public void onChildMoved(DataSnapshot dataSnapshot, String str) {
            }

            @Override
            public void onChildAdded(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                String key = dataSnapshot.getKey();
                HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
                if (key.equals(FirebaseAuth.getInstance().getCurrentUser().getUid())) {
                    if (hashMap.containsKey("uid")) {
                        HomeActivity.this.verify_user = hashMap.get("uid").toString();
                        HomeActivity.this.users.edit().putString("uid", hashMap.get("uid").toString()).commit();
                    }
                    if (hashMap.containsKey("email")) {
                        HomeActivity.this.users.edit().putString("email", hashMap.get("email").toString()).commit();
                    }
                    if (hashMap.containsKey("last_seen")) {
                        HomeActivity.this.seen.put(ClientCookie.VERSION_ATTR, HomeActivity.this.app_version);
                        HomeActivity.this.seen.put("last_seen", new SimpleDateFormat("dd MMM yyyy a").format(HomeActivity.this.cal.getTime()));
                        HomeActivity.this.Users.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).updateChildren(HomeActivity.this.seen);
                    } else {
                        HomeActivity.this.seen.put(ClientCookie.VERSION_ATTR, HomeActivity.this.app_version);
                        HomeActivity.this.seen.put("last_seen", new SimpleDateFormat("dd MMM yyyy a").format(HomeActivity.this.cal.getTime()));
                        HomeActivity.this.Users.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).updateChildren(HomeActivity.this.seen);
                    }
                    if (hashMap.containsKey("block") && hashMap.get("block").toString().equals("true")) {
                        AlertDialog create = new AlertDialog.Builder(HomeActivity.this).create();
                        View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.block, (ViewGroup) null);
                        create.getWindow().setBackgroundDrawableResource(android.R.color.transparent);
                        create.setView(inflate);
                        TextView textView = (TextView) inflate.findViewById(R.id.t1);
                        TextView textView2 = (TextView) inflate.findViewById(R.id.t2);
                        TextView textView3 = (TextView) inflate.findViewById(R.id.b2);
                        ImageView imageView = (ImageView) inflate.findViewById(R.id.i1);
                        LinearLayout linearLayout2 = (LinearLayout) inflate.findViewById(R.id.bg);
                        textView.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/opensans_bold.ttf"), 0);
                        textView2.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/product.ttf"), 0);
                        textView3.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/opensans_bold.ttf"), 0);
                        imageView.setImageResource(R.drawable.checkmark_2);
                        textView.setText("Conta bloqueada !");
                        textView2.setText("Devido a cliques inválidos, sua conta foi temporariamente bloqueada e será desbloqueada em breve.");
                        textView3.setText("Contate-nos");
                        HomeActivity.this._rippleRoundStroke(linearLayout2, "#FFFFFF", "#000000", 30.0d, 0.0d, "#000000");
                        HomeActivity.this._rippleRoundStroke(textView3, "#6C63FF", "#40FFFFFF", 15.0d, 0.0d, "#000000");
                        textView3.setOnClickListener(new View.OnClickListener() {
                            @Override
                            public void onClick(View view) {
                                if (!HomeActivity.this.BlockUs.equals("")) {
                                    HomeActivity.this.intent.setAction("android.intent.action.VIEW");
                                    HomeActivity.this.intent.setData(Uri.parse(HomeActivity.this.BlockUs));
                                    HomeActivity.this.startActivity(HomeActivity.this.intent);
                                } else {
                                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Links!");
                                }
                                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
                            }
                        });
                        create.setCancelable(false);
                        create.show();
                    }
                }
            }

            @Override
            public void onChildChanged(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                String key = dataSnapshot.getKey();
                HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
                if (key.equals(FirebaseAuth.getInstance().getCurrentUser().getEmail()) && hashMap.containsKey("uid")) {
                    HomeActivity.this.verify_user = hashMap.get("uid").toString();
                }
            }

            @Override
            public void onChildRemoved(DataSnapshot dataSnapshot) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onCancelled(DatabaseError databaseError) {
                databaseError.getCode();
                databaseError.getMessage();
            }
        };
        this._Users_child_listener = childEventListener;
        this.Users.addChildEventListener(childEventListener);
        ChildEventListener childEventListener2 = new ChildEventListener() {
            @Override
            public void onChildMoved(DataSnapshot dataSnapshot, String str) {
            }

            @Override
            public void onChildAdded(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onChildChanged(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onChildRemoved(DataSnapshot dataSnapshot) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onCancelled(DatabaseError databaseError) {
                databaseError.getCode();
                databaseError.getMessage();
            }
        };
        this._normal_child_listener = childEventListener2;
        this.normal.addChildEventListener(childEventListener2);
        ChildEventListener childEventListener3 = new ChildEventListener() {
            @Override
            public void onChildMoved(DataSnapshot dataSnapshot, String str) {
            }

            @Override
            public void onChildAdded(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
                HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
                if (hashMap.containsKey("key")) {
                    HomeActivity.this.premium_projects.add(0, hashMap);
                    RecyclerView recyclerView = HomeActivity.this.recyclerview_premium;
                    HomeActivity homeActivity = HomeActivity.this;
                    recyclerView.setAdapter(new Recyclerview_premiumAdapter(homeActivity.premium_projects));
                    HomeActivity.this.progressbar_premium.setVisibility(8);
                }
            }

            @Override
            public void onChildChanged(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onChildRemoved(DataSnapshot dataSnapshot) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onCancelled(DatabaseError databaseError) {
                databaseError.getCode();
                databaseError.getMessage();
            }
        };
        this._premium_child_listener = childEventListener3;
        this.premium.addChildEventListener(childEventListener3);
        this._network_request_listener = new RequestNetwork.RequestListener() {
            @Override
            public void onResponse(String str, String str2, HashMap<String, Object> hashMap) {
            }

            @Override
            public void onErrorResponse(String str, String str2) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), NoInternetActivity.class);
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        };
        ChildEventListener childEventListener4 = new ChildEventListener() {
            @Override
            public void onChildMoved(DataSnapshot dataSnapshot, String str) {
            }

            @Override
            public void onChildAdded(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                String key = dataSnapshot.getKey();
                final HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
                if (key.equals("update") && hashMap.containsKey(ClientCookie.VERSION_ATTR)) {
                    if (Double.parseDouble(HomeActivity.this.app_version) >= Double.parseDouble(hashMap.get(ClientCookie.VERSION_ATTR).toString())) {
                        if (Double.parseDouble(HomeActivity.this.app_version) == Double.parseDouble(hashMap.get(ClientCookie.VERSION_ATTR).toString())) {
                            HomeActivity.this.data2 = true;
                            return;
                        } else if (Double.parseDouble(HomeActivity.this.app_version) > Double.parseDouble(hashMap.get(ClientCookie.VERSION_ATTR).toString())) {
                            HomeActivity.this.data2 = true;
                            SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Obrigado por usar a versão beta");
                            return;
                        } else {
                            SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Algo deu errado");
                            HomeActivity.this.finishAffinity();
                            return;
                        }
                    }
                    BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(HomeActivity.this);
                    View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.update_cus, (ViewGroup) null);
                    bottomSheetDialog.setContentView(inflate);
                    bottomSheetDialog.getWindow().findViewById(R.id.design_bottom_sheet).setBackgroundResource(android.R.color.transparent);
                    LinearLayout linearLayout2 = (LinearLayout) inflate.findViewById(R.id.bg);
                    TextView textView = (TextView) inflate.findViewById(R.id.now);
                    textView.setText("INSTALAR AGORA");
                    ((TextView) inflate.findViewById(R.id.whats_new)).setText(hashMap.get("whats_new").toString());
                    ((TextView) inflate.findViewById(R.id.version)).setText("Versão : ".concat(hashMap.get(ClientCookie.VERSION_ATTR).toString()));
                    TextView textView2 = (TextView) inflate.findViewById(R.id.later);
                    textView2.setText("DEPOIS");
                    HomeActivity.this._round_corner_and_ripple(linearLayout2, 30.0d, 0.0d, "#FFFFFF", false);
                    HomeActivity.this._round_corner_and_ripple(textView, 15.0d, 10.0d, "#1361F5", true);
                    HomeActivity.this._round_corner_and_ripple(textView2, 15.0d, 0.0d, "#E0E0E0", true);
                    if (hashMap.get("cancelable").toString().equals("false")) {
                        textView2.setVisibility(8);
                    }
                    textView.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View view) {
                            HomeActivity.this.web.setAction("android.intent.action.VIEW");
                            HomeActivity.this.web.setData(Uri.parse(hashMap.get("download_url").toString()));
                            HomeActivity.this.startActivity(HomeActivity.this.web);
                        }
                    });
                    textView2.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View view) {
                            HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), HomeActivity.class);
                            HomeActivity.this.startActivity(HomeActivity.this.intent);
                            HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
                        }
                    });
                    bottomSheetDialog.setCancelable(false);
                    bottomSheetDialog.show();
                }
            }

            @Override
            public void onChildChanged(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                String key = dataSnapshot.getKey();
                final HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
                if (key.equals("update") && hashMap.containsKey(ClientCookie.VERSION_ATTR)) {
                    if (Double.parseDouble(HomeActivity.this.app_version) >= Double.parseDouble(hashMap.get(ClientCookie.VERSION_ATTR).toString())) {
                        if (Double.parseDouble(HomeActivity.this.app_version) == Double.parseDouble(hashMap.get(ClientCookie.VERSION_ATTR).toString())) {
                            HomeActivity.this.data2 = true;
                            return;
                        } else if (Double.parseDouble(HomeActivity.this.app_version) > Double.parseDouble(hashMap.get(ClientCookie.VERSION_ATTR).toString())) {
                            HomeActivity.this.data2 = true;
                            SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Obrigado por usar a versão beta");
                            return;
                        } else {
                            SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Algo deu errado");
                            HomeActivity.this.finishAffinity();
                            return;
                        }
                    }
                    BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(HomeActivity.this);
                    View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.update_cus, (ViewGroup) null);
                    bottomSheetDialog.setContentView(inflate);
                    bottomSheetDialog.getWindow().findViewById(R.id.design_bottom_sheet).setBackgroundResource(android.R.color.transparent);
                    LinearLayout linearLayout2 = (LinearLayout) inflate.findViewById(R.id.bg);
                    TextView textView = (TextView) inflate.findViewById(R.id.now);
                    textView.setText("INSTALAR AGORA");
                    ((TextView) inflate.findViewById(R.id.whats_new)).setText(hashMap.get("whats_new").toString());
                    ((TextView) inflate.findViewById(R.id.version)).setText("Versão : ".concat(hashMap.get(ClientCookie.VERSION_ATTR).toString()));
                    TextView textView2 = (TextView) inflate.findViewById(R.id.later);
                    textView2.setText("DEPOIS");
                    HomeActivity.this._round_corner_and_ripple(linearLayout2, 30.0d, 0.0d, "#FFFFFF", false);
                    HomeActivity.this._round_corner_and_ripple(textView, 15.0d, 10.0d, "#1361F5", true);
                    HomeActivity.this._round_corner_and_ripple(textView2, 15.0d, 0.0d, "#E0E0E0", true);
                    if (hashMap.get("cancelable").toString().equals("false")) {
                        textView2.setVisibility(8);
                    }
                    textView.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View view) {
                            HomeActivity.this.web.setAction("android.intent.action.VIEW");
                            HomeActivity.this.web.setData(Uri.parse(hashMap.get("download_url").toString()));
                            HomeActivity.this.startActivity(HomeActivity.this.web);
                        }
                    });
                    textView2.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View view) {
                            HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), HomeActivity.class);
                            HomeActivity.this.startActivity(HomeActivity.this.intent);
                            HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
                        }
                    });
                    bottomSheetDialog.setCancelable(false);
                    bottomSheetDialog.show();
                }
            }

            @Override
            public void onChildRemoved(DataSnapshot dataSnapshot) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onCancelled(DatabaseError databaseError) {
                databaseError.getCode();
                databaseError.getMessage();
            }
        };
        this._update_child_listener = childEventListener4;
        this.update.addChildEventListener(childEventListener4);
        ChildEventListener childEventListener5 = new ChildEventListener() {
            @Override
            public void onChildMoved(DataSnapshot dataSnapshot, String str) {
            }

            @Override
            public void onChildAdded(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
                HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
                if (hashMap.containsKey("maintenance")) {
                    HomeActivity.this.maintenanc = hashMap.get("maintenance").toString();
                }
            }

            @Override
            public void onChildChanged(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
                HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
                if (hashMap.containsKey("maintenance")) {
                    HomeActivity.this.maintenanc = hashMap.get("maintenance").toString();
                }
            }

            @Override
            public void onChildRemoved(DataSnapshot dataSnapshot) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onCancelled(DatabaseError databaseError) {
                databaseError.getCode();
                databaseError.getMessage();
            }
        };
        this._maintenance_child_listener = childEventListener5;
        this.maintenance.addChildEventListener(childEventListener5);
        ChildEventListener childEventListener6 = new ChildEventListener() {
            @Override
            public void onChildMoved(DataSnapshot dataSnapshot, String str) {
            }

            @Override
            public void onChildAdded(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
                HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
                if (hashMap.containsKey("F")) {
                    HomeActivity.this.Facebook = hashMap.get("F").toString();
                }
                if (hashMap.containsKey("Y")) {
                    HomeActivity.this.YouTube = hashMap.get("Y").toString();
                }
                if (hashMap.containsKey(ExifInterface.GPS_DIRECTION_TRUE)) {
                    HomeActivity.this.Telegram = hashMap.get(ExifInterface.GPS_DIRECTION_TRUE).toString();
                }
                if (hashMap.containsKey(ExifInterface.GPS_MEASUREMENT_IN_PROGRESS)) {
                    HomeActivity.this.About = hashMap.get(ExifInterface.GPS_MEASUREMENT_IN_PROGRESS).toString();
                }
                if (hashMap.containsKey("P")) {
                    HomeActivity.this.Privacy = hashMap.get("P").toString();
                }
                if (hashMap.containsKey("B")) {
                    HomeActivity.this.BlockUs = hashMap.get("B").toString();
                }
            }

            @Override
            public void onChildChanged(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onChildRemoved(DataSnapshot dataSnapshot) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onCancelled(DatabaseError databaseError) {
                databaseError.getCode();
                databaseError.getMessage();
            }
        };
        this._Contact_child_listener = childEventListener6;
        this.Contact.addChildEventListener(childEventListener6);
        ChildEventListener childEventListener7 = new ChildEventListener() {
            @Override
            public void onChildMoved(DataSnapshot dataSnapshot, String str) {
            }

            @Override
            public void onChildAdded(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
                HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
                if (hashMap.containsKey("A1")) {
                    HomeActivity.this.Banner = hashMap.get("A1").toString();
                }
            }

            @Override
            public void onChildChanged(DataSnapshot dataSnapshot, String str) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onChildRemoved(DataSnapshot dataSnapshot) {
                GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
                };
                dataSnapshot.getKey();
            }

            @Override
            public void onCancelled(DatabaseError databaseError) {
                databaseError.getCode();
                databaseError.getMessage();
            }
        };
        this._Ads_child_listener = childEventListener7;
        this.Ads.addChildEventListener(childEventListener7);
        this._drawer_profile.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), AccountActivity.class);
                HomeActivity.this.developer.edit().putString("uid", FirebaseAuth.getInstance().getCurrentUser().getUid()).commit();
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this._drawer_notifications.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), NotificationActivity.class);
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
                HomeActivity.this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
        this._drawer_jsonn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), JsonActivity.class);
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
            }
        });
        this._drawer_linear26.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.web.setClass(HomeActivity.this.getApplicationContext(), FiledownloadActivity.class);
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.web);
            }
        });
        this._drawer_about.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), AboutActivity.class);
                HomeActivity homeActivity = HomeActivity.this;
                homeActivity.startActivity(homeActivity.intent);
            }
        });
        this._drawer_privacy.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!HomeActivity.this.Privacy.equals("")) {
                    HomeActivity.this.intent.setAction("android.intent.action.VIEW");
                    HomeActivity.this.intent.setData(Uri.parse(HomeActivity.this.Privacy));
                    HomeActivity homeActivity = HomeActivity.this;
                    homeActivity.startActivity(homeActivity.intent);
                    return;
                }
                SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Links!");
            }
        });
        this._drawer_support.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                    HomeActivity homeActivity = HomeActivity.this;
                    homeActivity._Saif("Suporte da ZStore", "Olá ZStore,\n\n Meu nome é ".concat(homeActivity.users.getString("name", "").concat("\nMeu Email é:".concat(FirebaseAuth.getInstance().getCurrentUser().getEmail().concat("\n\nE meu problema é ")))));
                } else {
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem conexão com a Internet");
                }
            }
        });
        this._drawer_facebook.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!HomeActivity.this.Facebook.equals("")) {
                    HomeActivity.this.web_jump.setAction("android.intent.action.VIEW");
                    HomeActivity.this.web_jump.setData(Uri.parse(HomeActivity.this.Facebook));
                    HomeActivity homeActivity = HomeActivity.this;
                    homeActivity.startActivity(homeActivity.web_jump);
                    return;
                }
                SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Links!");
            }
        });
        this._drawer_youtube.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!HomeActivity.this.YouTube.equals("")) {
                    HomeActivity.this.intent.setAction("android.intent.action.VIEW");
                    HomeActivity.this.intent.setData(Uri.parse(HomeActivity.this.YouTube));
                    HomeActivity homeActivity = HomeActivity.this;
                    homeActivity.startActivity(homeActivity.intent);
                    return;
                }
                SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Links!");
            }
        });
        this._drawer_telegram.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!HomeActivity.this.Telegram.equals("")) {
                    HomeActivity.this.intent.setAction("android.intent.action.VIEW");
                    HomeActivity.this.intent.setData(Uri.parse(HomeActivity.this.Telegram));
                    HomeActivity homeActivity = HomeActivity.this;
                    homeActivity.startActivity(homeActivity.intent);
                    return;
                }
                SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Links!");
            }
        });
        this.auth_updateEmailListener = new OnCompleteListener<Void>() {
            @Override
            public void onComplete(Task<Void> task) {
                task.isSuccessful();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        this.auth_updatePasswordListener = new OnCompleteListener<Void>() {
            @Override
            public void onComplete(Task<Void> task) {
                task.isSuccessful();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        this.auth_emailVerificationSentListener = new OnCompleteListener<Void>() {
            @Override
            public void onComplete(Task<Void> task) {
                task.isSuccessful();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        this.auth_deleteUserListener = new OnCompleteListener<Void>() {
            @Override
            public void onComplete(Task<Void> task) {
                task.isSuccessful();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        this.auth_phoneAuthListener = new OnCompleteListener<AuthResult>() {
            @Override
            public void onComplete(Task<AuthResult> task) {
                task.isSuccessful();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        this.auth_updateProfileListener = new OnCompleteListener<Void>() {
            @Override
            public void onComplete(Task<Void> task) {
                task.isSuccessful();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        this.auth_googleSignInListener = new OnCompleteListener<AuthResult>() {
            @Override
            public void onComplete(Task<AuthResult> task) {
                task.isSuccessful();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        this._auth_create_user_listener = new OnCompleteListener<AuthResult>() {
            @Override
            public void onComplete(Task<AuthResult> task) {
                task.isSuccessful();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        this._auth_sign_in_listener = new OnCompleteListener<AuthResult>() {
            @Override
            public void onComplete(Task<AuthResult> task) {
                task.isSuccessful();
                if (task.getException() != null) {
                    task.getException().getMessage();
                }
            }
        };
        this._auth_reset_password_listener = new OnCompleteListener<Void>() {
            @Override
            public void onComplete(Task<Void> task) {
                task.isSuccessful();
            }
        };
    }

    private void initializeLogic() {
        _limited_data_1();
        _limited_data_2();
        _limited_data_3();
        _design();
        this.packageName = new MainActivity().getClass().getPackage().getName();
        try {
            this.app_version = getPackageManager().getPackageInfo("com.zackiestudios.zstore", 1).versionName;
        } catch (PackageManager.NameNotFoundException unused) {
        }
        TimerTask timerTask = new TimerTask() {
            @Override
            public void run() {
                HomeActivity.this.runOnUiThread(new Runnable() {
                    @Override
                    public void run() {
                        if (HomeActivity.this.maintenanc.equals("on")) {
                            HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), MaintenanceActivity.class);
                            HomeActivity.this.startActivity(HomeActivity.this.intent);
                            HomeActivity.this.finish();
                        }
                    }
                });
            }
        };
        this.timer = timerTask;
        this._timer.schedule(timerTask, 2600L);
        this.network.startRequestNetwork("GET", "https://www.google.com/", "", this._network_request_listener);
    }

    @Override
    public void onBackPressed() {
        if (this._drawer.isDrawerOpen(GravityCompat.START)) {
            this._drawer.closeDrawer(GravityCompat.START);
            return;
        }
        final BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(this);
        View inflate = getLayoutInflater().inflate(R.layout.logout, (ViewGroup) null);
        bottomSheetDialog.setContentView(inflate);
        bottomSheetDialog.getWindow().findViewById(R.id.design_bottom_sheet).setBackgroundResource(android.R.color.transparent);
        View view = (LinearLayout) inflate.findViewById(R.id.bg);
        ((TextView) inflate.findViewById(R.id.t1)).setText("Sair");
        ((TextView) inflate.findViewById(R.id.t2)).setText("Você tem certeza que quer sair?");
        TextView textView = (TextView) inflate.findViewById(R.id.b1);
        textView.setText("Cancelar");
        TextView textView2 = (TextView) inflate.findViewById(R.id.b2);
        textView2.setText("Sair");
        _round_corner_and_ripple(view, 20.0d, 0.0d, "#FFFFFF", false);
        _round_corner_and_ripple(textView, 15.0d, 5.0d, "#F5F5F5", true);
        _round_corner_and_ripple(textView2, 15.0d, 5.0d, "#1361F5", true);
        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view2) {
                bottomSheetDialog.dismiss();
            }
        });
        textView2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view2) {
                bottomSheetDialog.dismiss();
                HomeActivity.this.finishAffinity();
            }
        });
        bottomSheetDialog.setCancelable(true);
        bottomSheetDialog.show();
    }

    public void _design() {
        _shimmer();
        _RippleEffects("#BDBDBD", this.imageview1);
        _RippleEffects("#BDBDBD", this.circleimageview1);
        this.recyclerview_editors.setLayoutManager(new LinearLayoutManager(this, 0, false));
        this.recyclerview_latest.setLayoutManager(new LinearLayoutManager(this, 0, false));
        this.recyclerview_trending.setLayoutManager(new LinearLayoutManager(this, 0, false));
        this.recyclerview_liked.setLayoutManager(new LinearLayoutManager(this, 0, false));
        this.linear_most_liked.setVisibility(8);
        getSupportActionBar().hide();
        ((LinearLayout) findViewById(R.id._nav_view)).setBackgroundDrawable(new ColorDrawable(0));
        if (Build.VERSION.SDK_INT >= 21) {
            getWindow().getDecorView().setSystemUiVisibility(9472);
            getWindow().setStatusBarColor(0);
        }
        this.recyclerview_premium.setLayoutManager(new GridLayoutManager(this, 1));
        this.network.startRequestNetwork("GET", "https://www.google.com", "aa", this._network_request_listener);
        _rippleRoundStroke(this.linear_profile, "#FFFFFF", "#BDBDBD", 360.0d, 0.0d, "#1361F5");
        this.bottomnavigation1.getMenu().add(0, 0, 0, "Início").setIcon(R.drawable.navigation_1);
        this.bottomnavigation1.getMenu().add(0, 1, 0, "Premium").setIcon(R.drawable.navigation_4);
        this.bottomnavigation1.getMenu().add(0, 3, 0, "Categorias").setIcon(R.drawable.navigation_3);
        this._drawer_emails.setText(FirebaseAuth.getInstance().getCurrentUser().getEmail());
        this._drawer_names.setText(this.users.getString("name", ""));
        if (this.users.getString(Scopes.PROFILE, "").equals("")) {
            this._drawer_profileviews.setVisibility(0);
            this._drawer_cardview1s.setVisibility(8);
            this.profileview.setVisibility(0);
            this.circleimageview1.setVisibility(8);
            if (this.users.getString(TypedValues.Custom.S_COLOR, "").equals("")) {
                _rippleRoundStroke(this._drawer_profileviews, "#FFC107", "#BDBDBD", 360.0d, 2.0d, "#FFFFFF");
                _rippleRoundStroke(this.profileview, "#FFC107", "#BDBDBD", 360.0d, 2.0d, "#1361F5");
                this.name2.setText(this.users.getString("name", "").trim().substring(0, 2).toUpperCase());
                this._drawer_name2s.setText(this.users.getString("name", "").trim().substring(0, 2).toUpperCase());
                return;
            }
            _rippleRoundStroke(this._drawer_profileviews, this.users.getString(TypedValues.Custom.S_COLOR, ""), "#BDBDBD", 360.0d, 2.0d, "#FFFFFF");
            _rippleRoundStroke(this.profileview, this.users.getString(TypedValues.Custom.S_COLOR, ""), "#BDBDBD", 360.0d, 2.0d, "#1361F5");
            this.name2.setText(this.users.getString("name", "").trim().substring(0, 2).toUpperCase());
            this._drawer_name2s.setText(this.users.getString("name", "").trim().substring(0, 2).toUpperCase());
            return;
        }
        this._drawer_profileviews.setVisibility(8);
        this._drawer_cardview1s.setVisibility(0);
        this.circleimageview1.setVisibility(0);
        this.profileview.setVisibility(8);
        Glide.with(getApplicationContext()).load(Uri.parse(this.users.getString(Scopes.PROFILE, ""))).into(this._drawer_profile_pics);
        Glide.with(getApplicationContext()).load(Uri.parse(this.users.getString(Scopes.PROFILE, ""))).into(this.circleimageview1);
    }

    public void _TransitionManager(View view, double d) {
        AutoTransition autoTransition = new AutoTransition();
        autoTransition.setDuration((long) d);
        TransitionManager.beginDelayedTransition((LinearLayout) view, autoTransition);
    }

    public void _round_corner_and_ripple(View view, double d, double d2, String str, boolean z) {
        if (z) {
            GradientDrawable gradientDrawable = new GradientDrawable();
            gradientDrawable.setColor(Color.parseColor(str));
            gradientDrawable.setCornerRadius((int) d);
            view.setElevation((int) d2);
            Drawable rippleDrawable = new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{Color.parseColor("#9e9e9e")}), gradientDrawable, null);
            view.setClickable(true);
            view.setBackground(rippleDrawable);
            return;
        }
        GradientDrawable gradientDrawable2 = new GradientDrawable();
        gradientDrawable2.setColor(Color.parseColor(str));
        gradientDrawable2.setCornerRadius((int) d);
        view.setBackground(gradientDrawable2);
        view.setElevation((int) d2);
    }

    public void _RippleEffects(String str, View view) {
        view.setBackground(new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{Color.parseColor(str)}), null, null));
    }

    public void _rippleRoundStroke(View view, String str, String str2, double d, double d2, String str3) {
        GradientDrawable gradientDrawable = new GradientDrawable();
        gradientDrawable.setColor(Color.parseColor(str));
        gradientDrawable.setCornerRadius((float) d);
        gradientDrawable.setStroke((int) d2, Color.parseColor("#" + str3.replace("#", "")));
        view.setBackground(new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{Color.parseColor(str2)}), gradientDrawable, null));
    }

    public void _colorTransform(ImageView imageView, String str) {
        imageView.clearColorFilter();
        imageView.setColorFilter(Color.parseColor(str.toString()));
    }

    public void _click_effect(View view, String str) {
        view.setBackground(Drawables.getSelectableDrawableFor(Color.parseColor(str)));
        view.setClickable(true);
    }

    public static class Drawables {
        public static Drawable getSelectableDrawableFor(int i) {
            if (Build.VERSION.SDK_INT < 21) {
                StateListDrawable stateListDrawable = new StateListDrawable();
                stateListDrawable.addState(new int[]{android.R.attr.state_pressed}, new ColorDrawable(Color.parseColor("#ffffff")));
                stateListDrawable.addState(new int[]{android.R.attr.state_focused}, new ColorDrawable(Color.parseColor("#00ffffff")));
                stateListDrawable.addState(new int[0], new ColorDrawable(Color.parseColor("#00ffffff")));
                return stateListDrawable;
            }
            return new RippleDrawable(ColorStateList.valueOf(i), new ColorDrawable(Color.parseColor("#00ffffff")), getRippleColor(i));
        }

        private static Drawable getRippleColor(int i) {
            float[] fArr = new float[8];
            Arrays.fill(fArr, 0.0f);
            ShapeDrawable shapeDrawable = new ShapeDrawable(new RoundRectShape(fArr, null, null));
            shapeDrawable.getPaint().setColor(i);
            return shapeDrawable;
        }

        private static int lightenOrDarken(int i, double d) {
            if (canLighten(i, d)) {
                return lighten(i, d);
            }
            return darken(i, d);
        }

        private static int lighten(int i, double d) {
            int red = Color.red(i);
            int green = Color.green(i);
            int blue = Color.blue(i);
            return Color.argb(Color.alpha(i), lightenColor(red, d), lightenColor(green, d), lightenColor(blue, d));
        }

        private static int darken(int i, double d) {
            int red = Color.red(i);
            int green = Color.green(i);
            int blue = Color.blue(i);
            return Color.argb(Color.alpha(i), darkenColor(red, d), darkenColor(green, d), darkenColor(blue, d));
        }

        private static boolean canLighten(int i, double d) {
            return canLightenComponent(Color.red(i), d) && canLightenComponent(Color.green(i), d) && canLightenComponent(Color.blue(i), d);
        }

        private static boolean canLightenComponent(int i, double d) {
            int red = Color.red(i);
            int green = Color.green(i);
            int blue = Color.blue(i);
            double d2 = red;
            if (d2 + (d2 * d) >= 255.0d) {
                return false;
            }
            double d3 = green;
            if (d3 + (d3 * d) >= 255.0d) {
                return false;
            }
            double d4 = blue;
            return d4 + (d * d4) < 255.0d;
        }

        private static int darkenColor(int i, double d) {
            double d2 = i;
            return (int) Math.max(d2 - (d * d2), 0.0d);
        }

        private static int lightenColor(int i, double d) {
            double d2 = i;
            return (int) Math.min(d2 + (d * d2), 255.0d);
        }
    }

    public static class CircleDrawables {
        public static Drawable getSelectableDrawableFor(int i) {
            if (Build.VERSION.SDK_INT < 21) {
                StateListDrawable stateListDrawable = new StateListDrawable();
                stateListDrawable.addState(new int[]{android.R.attr.state_pressed}, new ColorDrawable(Color.parseColor("#ffffff")));
                stateListDrawable.addState(new int[]{android.R.attr.state_focused}, new ColorDrawable(Color.parseColor("#00ffffff")));
                stateListDrawable.addState(new int[0], new ColorDrawable(Color.parseColor("#00ffffff")));
                return stateListDrawable;
            }
            return new RippleDrawable(ColorStateList.valueOf(i), new ColorDrawable(Color.parseColor("#00ffffff")), getRippleColor(i));
        }

        private static Drawable getRippleColor(int i) {
            float[] fArr = new float[180];
            Arrays.fill(fArr, 80.0f);
            ShapeDrawable shapeDrawable = new ShapeDrawable(new RoundRectShape(fArr, null, null));
            shapeDrawable.getPaint().setColor(i);
            return shapeDrawable;
        }

        private static int lightenOrDarken(int i, double d) {
            if (canLighten(i, d)) {
                return lighten(i, d);
            }
            return darken(i, d);
        }

        private static int lighten(int i, double d) {
            int red = Color.red(i);
            int green = Color.green(i);
            int blue = Color.blue(i);
            return Color.argb(Color.alpha(i), lightenColor(red, d), lightenColor(green, d), lightenColor(blue, d));
        }

        private static int darken(int i, double d) {
            int red = Color.red(i);
            int green = Color.green(i);
            int blue = Color.blue(i);
            return Color.argb(Color.alpha(i), darkenColor(red, d), darkenColor(green, d), darkenColor(blue, d));
        }

        private static boolean canLighten(int i, double d) {
            return canLightenComponent(Color.red(i), d) && canLightenComponent(Color.green(i), d) && canLightenComponent(Color.blue(i), d);
        }

        private static boolean canLightenComponent(int i, double d) {
            int red = Color.red(i);
            int green = Color.green(i);
            int blue = Color.blue(i);
            double d2 = red;
            if (d2 + (d2 * d) >= 255.0d) {
                return false;
            }
            double d3 = green;
            if (d3 + (d3 * d) >= 255.0d) {
                return false;
            }
            double d4 = blue;
            return d4 + (d * d4) < 255.0d;
        }

        private static int darkenColor(int i, double d) {
            double d2 = i;
            return (int) Math.max(d2 - (d * d2), 0.0d);
        }

        private static int lightenColor(int i, double d) {
            double d2 = i;
            return (int) Math.min(d2 + (d * d2), 255.0d);
        }
    }

    public void _shimmer() {
        _shadow();
        _rippleRoundStroke(this.ic1, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic2, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic3, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic4, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic5, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic6, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic7, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic8, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic9, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic10, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic11, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic12, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic13, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic14, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic15, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic16, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic17, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic18, "#BDBDBD", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.ic19, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt1, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt2, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt3, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt4, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt5, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt6, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt7, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt8, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt9, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt10, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt11, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt12, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt13, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt14, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
        _rippleRoundStroke(this.tt15, "#E0E0E0", "#00000000", 20.0d, 0.0d, "#00000000");
    }

    public void _shadow() {
        _round_corner_and_ripple(this.linear_box1, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box2, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box3, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box4, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box5, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box8, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box9, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box10, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box11, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box12, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box13, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box14, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box15, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box16, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_box17, 20.0d, 7.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_toolbar, 20.0d, 10.0d, "#FFFFFF", false);
        _round_corner_and_ripple(this.b1, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b2, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b3, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b4, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b5, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b6, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b7, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b8, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b9, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b10, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b11, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b12, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b13, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b14, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b15, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.b16, 0.0d, 0.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_files1, 20.0d, 10.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_files2, 20.0d, 10.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_files3, 20.0d, 10.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_files4, 20.0d, 10.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_files5, 20.0d, 10.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_files6, 20.0d, 10.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_files7, 20.0d, 10.0d, "#FFFFFF", true);
        _round_corner_and_ripple(this.linear_files8, 20.0d, 10.0d, "#FFFFFF", true);
    }

    public void _limited_data_1() {
        this.limit = 15.0d;
        this.key = "latest";
        Query endAt = this.normal.limitToLast((int) 15.0d).orderByChild(this.key).startAt("true").endAt("true");
        this.query1 = endAt;
        endAt.addValueEventListener(this.valueEventListener1);
    }

    public void _limited_data_2() {
        this.limit = 15.0d;
        this.key = "editors_choice";
        Query endAt = this.normal.limitToLast((int) 15.0d).orderByChild(this.key).startAt("true").endAt("true");
        this.query2 = endAt;
        endAt.addValueEventListener(this.valueEventListener2);
    }

    public void _limited_data_3() {
        this.limit = 15.0d;
        this.key = "trending";
        Query endAt = this.normal.limitToLast((int) 15.0d).orderByChild(this.key).startAt("true").endAt("true");
        this.query3 = endAt;
        endAt.addValueEventListener(this.valueEventListener3);
    }

    public void _Saif(String str, String str2) {
        this.subject = str;
        this.body = str2;
        String str3 = MailTo.MAILTO_SCHEME + "kyoubots@gmail.com?&subject=" + Uri.encode(str) + "&body=" + Uri.encode(str2);
        Intent intent = new Intent("android.intent.action.VIEW");
        intent.setData(Uri.parse(str3));
        startActivity(intent);
    }

    public String _timesAgo(String str, String str2) {
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        arrayList.clear();
        arrayList2.clear();
        ArrayList arrayList3 = new ArrayList(Arrays.asList(str.split("/")));
        ArrayList arrayList4 = new ArrayList(Arrays.asList(str2.split("/")));
        String valueOf = String.valueOf((long) (Double.parseDouble((String) arrayList4.get(2)) - Double.parseDouble((String) arrayList3.get(2))));
        if (valueOf.equals("0")) {
            String valueOf2 = String.valueOf((long) (Double.parseDouble((String) arrayList4.get(1)) - Double.parseDouble((String) arrayList3.get(1))));
            if (valueOf2.equals("0")) {
                String valueOf3 = String.valueOf((long) (Double.parseDouble((String) arrayList4.get(0)) - Double.parseDouble((String) arrayList3.get(0))));
                if (valueOf3.equals("0")) {
                    String valueOf4 = String.valueOf((long) (Double.parseDouble((String) arrayList4.get(3)) - Double.parseDouble((String) arrayList3.get(3))));
                    if (valueOf4.equals("0")) {
                        String valueOf5 = String.valueOf((long) (Double.parseDouble((String) arrayList4.get(4)) - Double.parseDouble((String) arrayList3.get(4))));
                        if (valueOf5.equals("0")) {
                            String valueOf6 = String.valueOf((long) (Double.parseDouble((String) arrayList4.get(5)) - Double.parseDouble((String) arrayList3.get(5))));
                            return valueOf6.equals("0") ? "Today" : valueOf6.concat(" secounds ago");
                        }
                        return valueOf5.concat(" minutes ago");
                    }
                    return valueOf4.concat(" hours ago");
                }
                return valueOf3.concat(" days ago");
            }
            return valueOf2.concat(" months ago");
        }
        return valueOf.concat(" years ago");
    }

    public class Recyclerview_editorsAdapter extends RecyclerView.Adapter<ViewHolder> {
        ArrayList<HashMap<String, Object>> _data;

        public Recyclerview_editorsAdapter(ArrayList<HashMap<String, Object>> arrayList) {
            this._data = arrayList;
        }

        @Override
        public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
            View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.project_cus3, (ViewGroup) null);
            inflate.setLayoutParams(new RecyclerView.LayoutParams(-1, -2));
            return new ViewHolder(inflate);
        }

        @Override
        public void onBindViewHolder(ViewHolder viewHolder, final int i) {
            View view = viewHolder.itemView;
            LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.linear1);
            ImageView imageView = (ImageView) view.findViewById(R.id.imageview_back);
            ImageView imageView2 = (ImageView) view.findViewById(R.id.imageview_icon);
            TextView textView = (TextView) view.findViewById(R.id.textview_name);
            TextView textView2 = (TextView) view.findViewById(R.id.textview_category);
            TextView textView3 = (TextView) view.findViewById(R.id.textview_size);
            view.setLayoutParams(new RecyclerView.LayoutParams(-2, -2));
            HomeActivity.this._round_corner_and_ripple(linearLayout, 20.0d, 0.0d, "#FFFFFF", true);
            textView.setEllipsize(TextUtils.TruncateAt.MARQUEE);
            textView.setMarqueeRepeatLimit(-1);
            textView.setSingleLine(true);
            textView.setSelected(true);
            if (this._data.get(i).containsKey("icon")) {
                Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(this._data.get(i).get("icon").toString())).into(imageView2);
            }
            if (this._data.get(i).containsKey("screen1")) {
                Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(this._data.get(i).get("screen1").toString())).into(imageView);
            }
            if (this._data.get(i).containsKey("title")) {
                textView.setText(this._data.get(i).get("title").toString());
            }
            if (this._data.get(i).containsKey("category")) {
                textView2.setText(this._data.get(i).get("category").toString());
            }
            if (this._data.get(i).containsKey("size")) {
                textView3.setText(this._data.get(i).get("size").toString());
            }
            linearLayout.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view2) {
                    if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                        if (!HomeActivity.this.verify_user.equals("")) {
                            HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), ProjectViewActivity.class);
                            HomeActivity.this.intent.putExtra("key", Recyclerview_editorsAdapter.this._data.get(i).get("key").toString());
                            HomeActivity.this.developer.edit().putString("uid", Recyclerview_editorsAdapter.this._data.get(i).get("uid").toString()).commit();
                            HomeActivity.this.developer.edit().putString("type", "Free").commit();
                            HomeActivity.this.startActivity(HomeActivity.this.intent);
                            return;
                        }
                        SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Algo errado com sua conta");
                        return;
                    }
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem Internet");
                }
            });
        }

        @Override
        public int getItemCount() {
            return this._data.size();
        }

        public class ViewHolder extends RecyclerView.ViewHolder {
            public ViewHolder(View view) {
                super(view);
            }
        }
    }

    public class Recyclerview_latestAdapter extends RecyclerView.Adapter<ViewHolder> {
        ArrayList<HashMap<String, Object>> _data;

        public Recyclerview_latestAdapter(ArrayList<HashMap<String, Object>> arrayList) {
            this._data = arrayList;
        }

        @Override
        public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
            View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.project_cus, (ViewGroup) null);
            inflate.setLayoutParams(new RecyclerView.LayoutParams(-1, -2));
            return new ViewHolder(inflate);
        }

        @Override
        public void onBindViewHolder(ViewHolder viewHolder, final int i) {
            View view = viewHolder.itemView;
            LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.linear1);
            TextView textView = (TextView) view.findViewById(R.id.title);
            ImageView imageView = (ImageView) view.findViewById(R.id.icon);
            TextView textView2 = (TextView) view.findViewById(R.id.likes);
            TextView textView3 = (TextView) view.findViewById(R.id.comments);
            view.setLayoutParams(new RecyclerView.LayoutParams(-2, -2));
            HomeActivity.this._round_corner_and_ripple(linearLayout, 20.0d, 0.0d, "#FFFFFF", true);
            if (this._data.get(i).containsKey("icon")) {
                Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(this._data.get(i).get("icon").toString())).into(imageView);
            } else {
                imageView.setImageResource(R.drawable.android_icon);
            }
            if (this._data.get(i).containsKey("title")) {
                textView.setText(this._data.get(i).get("title").toString());
            }
            if (this._data.get(i).containsKey("likes")) {
                textView2.setText(this._data.get(i).get("likes").toString());
            }
            if (this._data.get(i).containsKey("comments")) {
                textView3.setText(this._data.get(i).get("comments").toString());
            }
            linearLayout.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view2) {
                    if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                        if (!HomeActivity.this.verify_user.equals("")) {
                            HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), ProjectViewActivity.class);
                            HomeActivity.this.intent.putExtra("key", Recyclerview_latestAdapter.this._data.get(i).get("key").toString());
                            HomeActivity.this.developer.edit().putString("uid", Recyclerview_latestAdapter.this._data.get(i).get("uid").toString()).commit();
                            HomeActivity.this.developer.edit().putString("type", "Free").commit();
                            HomeActivity.this.startActivity(HomeActivity.this.intent);
                            return;
                        }
                        SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Algo errado com sua conta");
                        return;
                    }
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem internet");
                }
            });
        }

        @Override
        public int getItemCount() {
            return this._data.size();
        }

        public class ViewHolder extends RecyclerView.ViewHolder {
            public ViewHolder(View view) {
                super(view);
            }
        }
    }

    public class Recyclerview_trendingAdapter extends RecyclerView.Adapter<ViewHolder> {
        ArrayList<HashMap<String, Object>> _data;

        public Recyclerview_trendingAdapter(ArrayList<HashMap<String, Object>> arrayList) {
            this._data = arrayList;
        }

        @Override
        public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
            View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.project_cus, (ViewGroup) null);
            inflate.setLayoutParams(new RecyclerView.LayoutParams(-1, -2));
            return new ViewHolder(inflate);
        }

        @Override
        public void onBindViewHolder(ViewHolder viewHolder, final int i) {
            View view = viewHolder.itemView;
            LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.linear1);
            TextView textView = (TextView) view.findViewById(R.id.title);
            ImageView imageView = (ImageView) view.findViewById(R.id.icon);
            TextView textView2 = (TextView) view.findViewById(R.id.likes);
            TextView textView3 = (TextView) view.findViewById(R.id.comments);
            view.setLayoutParams(new RecyclerView.LayoutParams(-2, -2));
            HomeActivity.this._round_corner_and_ripple(linearLayout, 20.0d, 0.0d, "#FFFFFF", true);
            if (this._data.get(i).containsKey("icon")) {
                Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(this._data.get(i).get("icon").toString())).into(imageView);
            } else {
                imageView.setImageResource(R.drawable.android_icon);
            }
            if (this._data.get(i).containsKey("title")) {
                textView.setText(this._data.get(i).get("title").toString());
            }
            if (this._data.get(i).containsKey("likes")) {
                textView2.setText(this._data.get(i).get("likes").toString());
            }
            if (this._data.get(i).containsKey("comments")) {
                textView3.setText(this._data.get(i).get("comments").toString());
            }
            linearLayout.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view2) {
                    if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                        if (!HomeActivity.this.verify_user.equals("")) {
                            HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), ProjectViewActivity.class);
                            HomeActivity.this.intent.putExtra("key", Recyclerview_trendingAdapter.this._data.get(i).get("key").toString());
                            HomeActivity.this.developer.edit().putString("uid", Recyclerview_trendingAdapter.this._data.get(i).get("uid").toString()).commit();
                            HomeActivity.this.developer.edit().putString("type", "Free").commit();
                            HomeActivity.this.startActivity(HomeActivity.this.intent);
                            return;
                        }
                        SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Algo errado com sua conta");
                        return;
                    }
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem internet");
                }
            });
        }

        @Override
        public int getItemCount() {
            return this._data.size();
        }

        public class ViewHolder extends RecyclerView.ViewHolder {
            public ViewHolder(View view) {
                super(view);
            }
        }
    }

    public class Recyclerview_likedAdapter extends RecyclerView.Adapter<ViewHolder> {
        ArrayList<HashMap<String, Object>> _data;

        public Recyclerview_likedAdapter(ArrayList<HashMap<String, Object>> arrayList) {
            this._data = arrayList;
        }

        @Override
        public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
            View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.project_cus, (ViewGroup) null);
            inflate.setLayoutParams(new RecyclerView.LayoutParams(-1, -2));
            return new ViewHolder(inflate);
        }

        @Override
        public void onBindViewHolder(ViewHolder viewHolder, int i) {
            View view = viewHolder.itemView;
        }

        @Override
        public int getItemCount() {
            return this._data.size();
        }

        public class ViewHolder extends RecyclerView.ViewHolder {
            public ViewHolder(View view) {
                super(view);
            }
        }
    }

    public class Recyclerview_premiumAdapter extends RecyclerView.Adapter<ViewHolder> {
        ArrayList<HashMap<String, Object>> _data;

        public Recyclerview_premiumAdapter(ArrayList<HashMap<String, Object>> arrayList) {
            this._data = arrayList;
        }

        @Override
        public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
            View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.project_cus2, (ViewGroup) null);
            inflate.setLayoutParams(new RecyclerView.LayoutParams(-1, -2));
            return new ViewHolder(inflate);
        }

        @Override
        public void onBindViewHolder(ViewHolder viewHolder, final int i) {
            View view = viewHolder.itemView;
            LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.linear1);
            ImageView imageView = (ImageView) view.findViewById(R.id.imageview_icon);
            TextView textView = (TextView) view.findViewById(R.id.title);
            TextView textView2 = (TextView) view.findViewById(R.id.category);
            RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.linear_shine);
            LinearLayout linearLayout2 = (LinearLayout) view.findViewById(R.id.linear4);
            ShimmerFrameLayout shimmerFrameLayout = (ShimmerFrameLayout) view.findViewById(R.id.linear_shimmer);
            TextView textView3 = (TextView) view.findViewById(R.id.textview_shine);
            TextView textView4 = (TextView) view.findViewById(R.id.text_like);
            TextView textView5 = (TextView) view.findViewById(R.id.text_comments);
            TextView textView6 = (TextView) view.findViewById(R.id.textview_downloads);
            TextView textView7 = (TextView) view.findViewById(R.id.textview_price);
            HomeActivity.this._round_corner_and_ripple(linearLayout, 20.0d, 0.0d, "#FFFFFF", true);
            textView.setEllipsize(TextUtils.TruncateAt.MARQUEE);
            textView.setMarqueeRepeatLimit(-1);
            textView.setSingleLine(true);
            textView.setSelected(true);
            HomeActivity.this._round_corner_and_ripple(shimmerFrameLayout, 50.0d, 0.0d, "#FFFFFF", false);
            textView.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/raleway_regular.ttf"), 0);
            textView7.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/title.ttf"), 0);
            if (this._data.get(i).containsKey("icon")) {
                Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(this._data.get(i).get("icon").toString())).into(imageView);
            }
            if (this._data.get(i).containsKey("title")) {
                textView.setText(this._data.get(i).get("title").toString());
            }
            if (this._data.get(i).containsKey("likes")) {
                textView4.setText(this._data.get(i).get("likes").toString());
            }
            if (this._data.get(i).containsKey("downloads")) {
                textView6.setText(this._data.get(i).get("downloads").toString());
            }
            if (this._data.get(i).containsKey("comments")) {
                textView5.setText(this._data.get(i).get("comments").toString());
            }
            if (this._data.get(i).containsKey("price")) {
                textView7.setText(this._data.get(i).get("price").toString().concat(" Tk"));
            }
            if (this._data.get(i).containsKey("category")) {
                textView2.setText(this._data.get(i).get("category").toString());
            }
            if (this._data.get(i).containsKey("shine")) {
                if (this._data.get(i).get("shine").toString().equals("on")) {
                    textView3.setText(this._data.get(i).get("shine_text").toString());
                    HomeActivity.this._round_corner_and_ripple(linearLayout2, 50.0d, 0.0d, this._data.get(i).get("shine_color").toString(), false);
                } else {
                    relativeLayout.setVisibility(8);
                }
            }
            linearLayout.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view2) {
                    if (SketchwareUtil.isConnected(HomeActivity.this.getApplicationContext())) {
                        if (!HomeActivity.this.verify_user.equals("")) {
                            HomeActivity.this.intent.setClass(HomeActivity.this.getApplicationContext(), ProjectViewActivity.class);
                            HomeActivity.this.intent.putExtra("key", Recyclerview_premiumAdapter.this._data.get(i).get("key").toString());
                            HomeActivity.this.developer.edit().putString("uid", Recyclerview_premiumAdapter.this._data.get(i).get("uid").toString()).commit();
                            HomeActivity.this.developer.edit().putString("type", "Paid").commit();
                            HomeActivity.this.startActivity(HomeActivity.this.intent);
                            return;
                        }
                        SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Algo errado com sua conta.");
                        return;
                    }
                    SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Sem internet");
                }
            });
        }

        @Override
        public int getItemCount() {
            return this._data.size();
        }

        public class ViewHolder extends RecyclerView.ViewHolder {
            public ViewHolder(View view) {
                super(view);
            }
        }
    }

    @Deprecated
    public void showMessage(String str) {
        Toast.makeText(getApplicationContext(), str, 0).show();
    }

    @Deprecated
    public int getLocationX(View view) {
        int[] iArr = new int[2];
        view.getLocationInWindow(iArr);
        return iArr[0];
    }

    @Deprecated
    public int getLocationY(View view) {
        int[] iArr = new int[2];
        view.getLocationInWindow(iArr);
        return iArr[1];
    }

    @Deprecated
    public int getRandom(int i, int i2) {
        return new Random().nextInt((i2 - i) + 1) + i;
    }

    @Deprecated
    public ArrayList<Double> getCheckedItemPositionsToArray(ListView listView) {
        ArrayList<Double> arrayList = new ArrayList<>();
        SparseBooleanArray checkedItemPositions = listView.getCheckedItemPositions();
        for (int i = 0; i < checkedItemPositions.size(); i++) {
            if (checkedItemPositions.valueAt(i)) {
                arrayList.add(Double.valueOf(checkedItemPositions.keyAt(i)));
            }
        }
        return arrayList;
    }

    @Deprecated
    public float getDip(int i) {
        return TypedValue.applyDimension(1, i, getResources().getDisplayMetrics());
    }

    @Deprecated
    public int getDisplayWidthPixels() {
        return getResources().getDisplayMetrics().widthPixels;
    }

    @Deprecated
    public int getDisplayHeightPixels() {
        return getResources().getDisplayMetrics().heightPixels;
    }
}