Skip to content

Commit

Permalink
bugfix minori
Browse files Browse the repository at this point in the history
aggiunta apk V1.0.3
  • Loading branch information
ciopper90 committed Sep 4, 2014
1 parent e4dc98f commit fd1fb4e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Binary file modified apk/GaiaAndroidV1.0.3.apk
Binary file not shown.
22 changes: 11 additions & 11 deletions src/it/gaiacri/mobile/ElencoAttivita.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
mViewPager.setAdapter(mSectionsPagerAdapter);
mViewPager.setCurrentItem(giorni/2);
return v;
}


}

/**
* A {@link FragmentPagerAdapter} that returns a fragment corresponding to one of the primary
Expand Down Expand Up @@ -119,11 +119,11 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
this.args=args;
lv=new ListView(getActivity());
//download turni e visualizzazione
ArrayAdapter<String> arrayAdapter =new ArrayAdapter<String>(context, R.layout.riga_attivita, R.id.textViewList,new String[]{"Caricamento.."});
lv.setAdapter(arrayAdapter);


richiestaAttivita();
if(context != null){
ArrayAdapter<String> arrayAdapter =new ArrayAdapter<String>(context, R.layout.riga_attivita, R.id.textViewList,new String[]{"Caricamento.."});
lv.setAdapter(arrayAdapter);
richiestaAttivita();
}
return lv;
}

Expand All @@ -150,7 +150,7 @@ public RichiestaAttivita(ListView lv,HashMap<String, String> data) {
@Override
protected void onPostExecute(String str) {
//Log.d("Log","Ciao");

if(ErrorJson.Controllo(str,getActivity(),risposta)==0){
try{
JSONObject js=null;
Expand Down Expand Up @@ -218,7 +218,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
((TextView)row.findViewById(R.id.textViewList)).setTextColor(Color.parseColor(a.get(position).getColor()));
((TextView)row.findViewById(R.id.textViewListData)).setTextColor(Color.DKGRAY);
((TextView)row.findViewById(R.id.textViewListUrl)).setTextColor(Color.DKGRAY);

}
return row;
}
Expand Down Expand Up @@ -257,7 +257,7 @@ public void onClick(DialogInterface dialog, int id) {
alert.show();
}
}

public void richiestaAttivita(){
HashMap<String, String> data1 = new HashMap<String, String>();
c.add(Calendar.DAY_OF_MONTH, args.getInt(ARG_SECTION_NUMBER)-giorni/2-1);
Expand Down

0 comments on commit fd1fb4e

Please sign in to comment.