// Path: app/src/main/java/am/project/x/ProjectXApplication.java
// public class ProjectXApplication extends BroadcastApplication {
// 
//     private static ProjectXApplication mInstance;
// 
//     @Override
//     public void onCreate() {
//         mInstance = this;
//         super.onCreate();
//         NotificationChannelHelper.updateNotificationChannel(this);
//     }
// 
//     /**
//      * 获取Application
//      *
//      * @return Application
//      */
//     public static ProjectXApplication getInstance() {
//         return mInstance;
//     }
// }


import android.content.Context;
import androidx.annotation.Nullable;
import com.am.font.opentype.OpenType;
import com.am.font.opentype.OpenTypeCollection;
import com.am.font.opentype.TableRecord;
import com.am.font.opentype.tables.BaseTable;
import com.am.font.opentype.tables.NamingTable;
import com.am.mvp.core.MVPModel;
import am.project.x.ProjectXApplication;
import am.project.x.R;
        if (mFont == null && mFonts == null)
            return 0;
        if (mFonts == null) {
            return mFont.getTablesSize() + 1;
        } else {
            if (mFont == null)
                return 1;
            return mFont.getTablesSize() + 2;
        }
    }

    @Override
    public Object getItem(int position) {
        if (mFont == null && mFonts == null)
            return null;
        if (mFonts == null) {
            return position == 0 ? mFont : mFont.getTableRecordByIndex(position - 1);
        } else {
            if (mFont == null)
                return mFonts;
            if (position == 0)
                return mFonts;
            else if (position == 1)
                return mFont;
            return mFont.getTableRecordByIndex(position - 2);
        }
    }

    @Override
    public String getItemLabel(Object item) {
// Path: app/src/main/java/am/project/x/ProjectXApplication.java
// public class ProjectXApplication extends BroadcastApplication {
// 
//     private static ProjectXApplication mInstance;
// 
//     @Override
//     public void onCreate() {
//         mInstance = this;
//         super.onCreate();
//         NotificationChannelHelper.updateNotificationChannel(this);
//     }
// 
//     /**
//      * 获取Application
//      *
//      * @return Application
//      */
//     public static ProjectXApplication getInstance() {
//         return mInstance;
//     }
// }


// Path: app/src/main/java/am/project/x/business/others/opentype/OpenTypeModel.java
import android.content.Context;
import androidx.annotation.Nullable;
import com.am.font.opentype.OpenType;
import com.am.font.opentype.OpenTypeCollection;
import com.am.font.opentype.TableRecord;
import com.am.font.opentype.tables.BaseTable;
import com.am.font.opentype.tables.NamingTable;
import com.am.mvp.core.MVPModel;
import am.project.x.ProjectXApplication;
import am.project.x.R;

        if (mFont == null && mFonts == null)
            return 0;
        if (mFonts == null) {
            return mFont.getTablesSize() + 1;
        } else {
            if (mFont == null)
                return 1;
            return mFont.getTablesSize() + 2;
        }
    }

    @Override
    public Object getItem(int position) {
        if (mFont == null && mFonts == null)
            return null;
        if (mFonts == null) {
            return position == 0 ? mFont : mFont.getTableRecordByIndex(position - 1);
        } else {
            if (mFont == null)
                return mFonts;
            if (position == 0)
                return mFonts;
            else if (position == 1)
                return mFont;
            return mFont.getTableRecordByIndex(position - 2);
        }
    }

    @Override
    public String getItemLabel(Object item) {
        final Context context = ProjectXApplication.getInstance();