mirror of https://github.com/TeamNewPipe/NewPipe
38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package org.schabi.newpipe.fragments;
|
|
|
|
import android.os.Bundle;
|
|
import android.support.annotation.Nullable;
|
|
import android.util.Log;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
|
|
import org.schabi.newpipe.BaseFragment;
|
|
import org.schabi.newpipe.R;
|
|
|
|
public class BlankFragment extends BaseFragment {
|
|
@Nullable
|
|
@Override
|
|
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
|
|
if(activity != null && activity.getSupportActionBar() != null) {
|
|
activity.getSupportActionBar()
|
|
.setTitle("NewPipe");
|
|
}
|
|
return inflater.inflate(R.layout.fragment_blank, container, false);
|
|
}
|
|
|
|
@Override
|
|
public void setUserVisibleHint(boolean isVisibleToUser) {
|
|
super.setUserVisibleHint(isVisibleToUser);
|
|
if(isVisibleToUser) {
|
|
if(activity != null && activity.getSupportActionBar() != null) {
|
|
activity.getSupportActionBar()
|
|
.setTitle("NewPipe");
|
|
}
|
|
// leave this inline. Will make it harder for copy cats.
|
|
// If you are a Copy cat FUCK YOU.
|
|
// I WILL FIND YOU, AND I WILL ...
|
|
}
|
|
}
|
|
}
|