// Path: app/src/main/java/awais/backworddictionary/LinkedApp.java
// public final class LinkedApp extends MultiDexApplication {
//     public static Typeface fontRegular, fontMedium;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         SettingsHelper.setPreferences(this);
//         Utils.firebaseCrashlytics = FirebaseCrashlytics.getInstance();
// 
//         Typeface fontBold = null;
//         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
//             final Resources resources = getResources();
//             try {
//                 fontRegular = resources.getFont(R.font.googlesans_regular);
//                 fontMedium = resources.getFont(R.font.googlesans_medium);
//                 fontBold = resources.getFont(R.font.googlesans_bold);
//             } catch (final Exception e) {
//                 if (BuildConfig.DEBUG) Log.e("AWAISKING_APP", "LinkedApp", e);
//                 else Utils.firebaseCrashlytics.recordException(e);
//             }
//         }
// 
//         if (fontRegular == null) fontRegular = ResourcesCompat.getFont(this, R.font.googlesans_regular);
//         if (fontMedium == null) fontMedium = ResourcesCompat.getFont(this, R.font.googlesans_medium);
//         if (fontBold == null) fontBold = ResourcesCompat.getFont(this, R.font.googlesans_bold);
// 
//         Utils.setDefaultFont("DEFAULT", fontMedium);
//         Utils.setDefaultFont("SANS_SERIF", fontMedium);
//         Utils.setDefaultFont("SERIF", fontMedium);
//         Utils.setDefaultFont("MONOSPACE", fontMedium);
//         Utils.setDefaultFont("DEFAULT_BOLD", fontBold);
//     }
// }
// 
// Path: app/src/main/java/awais/backworddictionary/interfaces/AdapterClickListener.java
// public class AdapterClickListener implements View.OnClickListener, View.OnLongClickListener {
//     @Override
//     public void onClick(final View view) { }
// 
//     @Override
//     public boolean onLongClick(final View view) {
//         return view != null && BuildConfig.DEBUG;
//     }
// }


import android.content.Context;
import android.database.DataSetObservable;
import android.database.DataSetObserver;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListAdapter;
import androidx.annotation.NonNull;
import androidx.core.view.ViewCompat;
import java.util.List;
import awais.backworddictionary.LinkedApp;
import awais.backworddictionary.R;
import awais.backworddictionary.databinding.WordDialogItemBinding;
import awais.backworddictionary.interfaces.AdapterClickListener;
    @Override
    public void unregisterDataSetObserver(final DataSetObserver observer) {
        dataSetObservable.unregisterObserver(observer);
    }

    @Override
    public int getItemViewType(final int position) {
        return 0;
    }

    @Override
    public int getViewTypeCount() {
        return 1;
    }

    @Override
    public boolean isEmpty() {
        return getCount() <= 0;
    }
    @Override
    public int getCount() {
        return items == null ? 0 : items.size();
    }

    @Override
    public Object getItem(final int position) {
        return items.get(position);
    }

    @Override
// Path: app/src/main/java/awais/backworddictionary/LinkedApp.java
// public final class LinkedApp extends MultiDexApplication {
//     public static Typeface fontRegular, fontMedium;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         SettingsHelper.setPreferences(this);
//         Utils.firebaseCrashlytics = FirebaseCrashlytics.getInstance();
// 
//         Typeface fontBold = null;
//         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
//             final Resources resources = getResources();
//             try {
//                 fontRegular = resources.getFont(R.font.googlesans_regular);
//                 fontMedium = resources.getFont(R.font.googlesans_medium);
//                 fontBold = resources.getFont(R.font.googlesans_bold);
//             } catch (final Exception e) {
//                 if (BuildConfig.DEBUG) Log.e("AWAISKING_APP", "LinkedApp", e);
//                 else Utils.firebaseCrashlytics.recordException(e);
//             }
//         }
// 
//         if (fontRegular == null) fontRegular = ResourcesCompat.getFont(this, R.font.googlesans_regular);
//         if (fontMedium == null) fontMedium = ResourcesCompat.getFont(this, R.font.googlesans_medium);
//         if (fontBold == null) fontBold = ResourcesCompat.getFont(this, R.font.googlesans_bold);
// 
//         Utils.setDefaultFont("DEFAULT", fontMedium);
//         Utils.setDefaultFont("SANS_SERIF", fontMedium);
//         Utils.setDefaultFont("SERIF", fontMedium);
//         Utils.setDefaultFont("MONOSPACE", fontMedium);
//         Utils.setDefaultFont("DEFAULT_BOLD", fontBold);
//     }
// }
// 
// Path: app/src/main/java/awais/backworddictionary/interfaces/AdapterClickListener.java
// public class AdapterClickListener implements View.OnClickListener, View.OnLongClickListener {
//     @Override
//     public void onClick(final View view) { }
// 
//     @Override
//     public boolean onLongClick(final View view) {
//         return view != null && BuildConfig.DEBUG;
//     }
// }


// Path: app/src/main/java/awais/backworddictionary/adapters/DefinitionsAdapter.java
import android.content.Context;
import android.database.DataSetObservable;
import android.database.DataSetObserver;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListAdapter;
import androidx.annotation.NonNull;
import androidx.core.view.ViewCompat;
import java.util.List;
import awais.backworddictionary.LinkedApp;
import awais.backworddictionary.R;
import awais.backworddictionary.databinding.WordDialogItemBinding;
import awais.backworddictionary.interfaces.AdapterClickListener;

    @Override
    public void unregisterDataSetObserver(final DataSetObserver observer) {
        dataSetObservable.unregisterObserver(observer);
    }

    @Override
    public int getItemViewType(final int position) {
        return 0;
    }

    @Override
    public int getViewTypeCount() {
        return 1;
    }

    @Override
    public boolean isEmpty() {
        return getCount() <= 0;
    }
    @Override
    public int getCount() {
        return items == null ? 0 : items.size();
    }

    @Override
    public Object getItem(final int position) {
        return items.get(position);
    }

    @Override
    public long getItemId(final int position) {