// 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 com.am.font.TypefaceCollection;
import com.am.font.TypefaceConfig;
import com.am.font.TypefaceFallback;
import com.am.font.TypefaceItem;
import com.am.mvp.core.MVPModel;
import java.io.File;
import java.util.List;
import am.project.x.ProjectXApplication;
import am.project.x.R;
        final int nameCount = mNames == null ? 0 : mNames.size();
        final int aliaCount = mAlias == null ? 0 : mAlias.size();
        return nameCount + aliaCount;
    }

    @Override
    public String getFamilyNameOrAlias(int position) {
        final int nameCount = mNames == null ? 0 : mNames.size();
        //noinspection ConstantConditions
        return position < nameCount ? mNames.get(position) : mAlias.get(position - nameCount);
    }

    @Override
    public boolean isFamilyAlias(int position) {
        return position >= (mNames == null ? 0 : mNames.size());
    }

    // AdapterViewModel
    @Override
    public int getTypefaceFallbackCount() {
        return mFallbacks == null ? 0 : mFallbacks.size();
    }

    @Override
    public String getTypefaceName() {
        return mTypeface == null ? null : mTypeface.getName();
    }

    @Override
    public String getCommonTitle() {
// 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/font/FontModel.java
import android.content.Context;
import com.am.font.TypefaceCollection;
import com.am.font.TypefaceConfig;
import com.am.font.TypefaceFallback;
import com.am.font.TypefaceItem;
import com.am.mvp.core.MVPModel;
import java.io.File;
import java.util.List;
import am.project.x.ProjectXApplication;
import am.project.x.R;

        final int nameCount = mNames == null ? 0 : mNames.size();
        final int aliaCount = mAlias == null ? 0 : mAlias.size();
        return nameCount + aliaCount;
    }

    @Override
    public String getFamilyNameOrAlias(int position) {
        final int nameCount = mNames == null ? 0 : mNames.size();
        //noinspection ConstantConditions
        return position < nameCount ? mNames.get(position) : mAlias.get(position - nameCount);
    }

    @Override
    public boolean isFamilyAlias(int position) {
        return position >= (mNames == null ? 0 : mNames.size());
    }

    // AdapterViewModel
    @Override
    public int getTypefaceFallbackCount() {
        return mFallbacks == null ? 0 : mFallbacks.size();
    }

    @Override
    public String getTypefaceName() {
        return mTypeface == null ? null : mTypeface.getName();
    }

    @Override
    public String getCommonTitle() {
        return ProjectXApplication.getInstance().getString(R.string.font_common);