// Path: app/src/main/java/com/koma/music/listener/MusicStateListener.java
// public interface MusicStateListener {
//     /**
//      * Called when {@link MusicServiceConstants#REFRESH} is invoked
//      */
//     public void refreshData();
// 
//     /**
//      * Called when {@link MusicServiceConstants#PLAYLIST_CHANGED} is invoked
//      */
//     public void onPlaylistChanged();
// 
//     /**
//      * Called when {@link MusicServiceConstants#META_CHANGED} is invoked
//      */
//     public void onMetaChanged();
// }


import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.koma.music.listener.MusicStateListener;
import butterknife.ButterKnife;
/*
 * Copyright (C) 2017 Koma MJ
 *
 * Licensed under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
 * or agreed to in writing, software distributed under the License is
 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */
package com.koma.music.base;




/**
 * Created by koma on 3/20/17.
 */

public abstract class BaseFragment extends Fragment implements MusicStateListener {
    protected Context mContext;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        mContext = context;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// Path: app/src/main/java/com/koma/music/listener/MusicStateListener.java
// public interface MusicStateListener {
//     /**
//      * Called when {@link MusicServiceConstants#REFRESH} is invoked
//      */
//     public void refreshData();
// 
//     /**
//      * Called when {@link MusicServiceConstants#PLAYLIST_CHANGED} is invoked
//      */
//     public void onPlaylistChanged();
// 
//     /**
//      * Called when {@link MusicServiceConstants#META_CHANGED} is invoked
//      */
//     public void onMetaChanged();
// }


// Path: app/src/main/java/com/koma/music/base/BaseFragment.java
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.koma.music.listener.MusicStateListener;
import butterknife.ButterKnife;

/*
 * Copyright (C) 2017 Koma MJ
 *
 * Licensed under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
 * or agreed to in writing, software distributed under the License is
 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */
package com.koma.music.base;




/**
 * Created by koma on 3/20/17.
 */

public abstract class BaseFragment extends Fragment implements MusicStateListener {
    protected Context mContext;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        mContext = context;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(getLayoutId(), container, false);