missing file
This commit is contained in:
parent
e190f1b9ef
commit
4a01b14b35
1 changed files with 8 additions and 0 deletions
|
@ -9,8 +9,12 @@ import android.support.v4.app.FragmentManager;
|
||||||
import android.support.v4.app.FragmentStatePagerAdapter;
|
import android.support.v4.app.FragmentStatePagerAdapter;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import info.nightscout.androidaps.MainActivity;
|
||||||
import info.nightscout.androidaps.interfaces.PluginBase;
|
import info.nightscout.androidaps.interfaces.PluginBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,6 +26,8 @@ public class TabPageAdapter extends FragmentStatePagerAdapter {
|
||||||
|
|
||||||
Context context;
|
Context context;
|
||||||
|
|
||||||
|
private static Logger log = LoggerFactory.getLogger(TabPageAdapter.class);
|
||||||
|
|
||||||
public TabPageAdapter(FragmentManager fm, Context context) {
|
public TabPageAdapter(FragmentManager fm, Context context) {
|
||||||
super(fm);
|
super(fm);
|
||||||
this.context = context;
|
this.context = context;
|
||||||
|
@ -40,6 +46,8 @@ public class TabPageAdapter extends FragmentStatePagerAdapter {
|
||||||
super.finishUpdate(container);
|
super.finishUpdate(container);
|
||||||
} catch (NullPointerException nullPointerException){
|
} catch (NullPointerException nullPointerException){
|
||||||
System.out.println("Catch the NullPointerException in FragmentStatePagerAdapter.finishUpdate");
|
System.out.println("Catch the NullPointerException in FragmentStatePagerAdapter.finishUpdate");
|
||||||
|
} catch (IllegalStateException e){
|
||||||
|
log.error(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue