From c6a1325646c2ad7537db1cb8f53d6a464ebf0861 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 13 Aug 2013 13:37:26 +0300 Subject: [PATCH] Clean up --- AndroidManifest.xml | 1 - res/drawable-hdpi/ic_launcher.png | Bin 1109 -> 0 bytes res/drawable-mdpi/ic_launcher.png | Bin 757 -> 0 bytes res/drawable-xhdpi/ic_launcher.png | Bin 1460 -> 0 bytes res/drawable-xxhdpi/ic_launcher.png | Bin 2214 -> 0 bytes res/layout/add_event.xml | 13 ----------- src/ro/ieval/unical/AddEventActivity.java | 1 - src/ro/ieval/unical/AddEventTabListener.java | 23 +++++++++++-------- 8 files changed, 14 insertions(+), 24 deletions(-) delete mode 100644 res/drawable-hdpi/ic_launcher.png delete mode 100644 res/drawable-mdpi/ic_launcher.png delete mode 100644 res/drawable-xhdpi/ic_launcher.png delete mode 100644 res/drawable-xxhdpi/ic_launcher.png delete mode 100644 res/layout/add_event.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 0e0fe94..25a418b 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -13,7 +13,6 @@ diff --git a/res/drawable-hdpi/ic_launcher.png b/res/drawable-hdpi/ic_launcher.png deleted file mode 100644 index d72c84bb5f2ea9462d9752662da82aaf01b75da5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1109 zcmV-b1giUqP)dm9N_OQPwfnbr(d z-ygDud)c3wUpEvs*V&W14|(lp;whdb2IB{OOiWLTM0&KlxZ>I&hH0%0FzcM3@w@2% z0(Rc`P3tji-@@-B2D9cZ%8m4jD?w@p!xUz8UB1($UugNY%2+hoH$pzCeKcd1`U`4D zdwj%&7(3ja9a}1lkVsB!fA4zbVx1yGz>&%sRUsiR}+<>XNt~OuhiQSNJ4!Z*AHbzt}AV$*MG}E~?cS2zssP{G3_xwtr{Hk*Qik3YVm%h4}1rGd$QaZX55C z6?eP{YEoSDUi7aiuC+&y^g!35SarI`wk?(0TBc>DBD48j&D<)-(b7wJe zHeLj&`}(6UqsWvi+hXvbZJOF9M;}|PfW|}eWZTS=NN-s`DQ!%9-YXE}HFnO#i6H(& z6Q~!f*+UMfJx3`7!R<$CzGfq~=VoUOBM-TF|G-5i;|n~z;$!A@YmmDJa+ely3(`@} zObyLtygV{6u?zp7M?Gk2jvBgPZp&MHF(JqoP5T39NnoGa)rFTKHqF7dO>Hh9f8P-3 z#=037f@Gztab>+|2G9{?7l6ebJ79`BpBbL0RN7e`=&ur9sfLP9Uziy|v0CHK&fxeR zL~fN|E!OJ}nYj$ckJ+i%dvQ!W^@aEpkJ_urqyG;qe2?xt=8BJ9xls%hR!_o2Pur*G zCVOG8@a|yC{YqLuH)JZ89_RT1&6-*0 zpN~G4Bc{pAvZF0tCsV#Wf3=w(vz93dWTQHNx@RR22m}IwKp+qZ1OkCTAP@)y0)apv b{Ezqr()=9fDlbLa00000NkvXXu0mjf&gA;2 diff --git a/res/drawable-mdpi/ic_launcher.png b/res/drawable-mdpi/ic_launcher.png deleted file mode 100644 index 42219b60e7d855e3018929bc26b674e15de70bb3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 757 zcmV?NW@8H4wugHZnC|y zbW5<`Mr)Z~)r0`PZ(;h!R$FcYTeBk2e?_`nP5AyO>$X1@>9`fQataQ&Hg@`BSXwP* zdp)fQ0XTAjMR`|b!)AYUCY!G#rw1$2`i|~twrf^l{YiF{Z~iI)+tEA9-heW9i+V)1 zX{engt;|ZK+F5cGYkv=@17%)UMId#_n;n^R&7KM=biY)rdi~Ix*C%2QKcnu`Upt}h zWmN=FRP&+)^wF{@F{!Lx6xy~I7O=VJBO&l9 zOa~NTs7DS%cdx}2{^)RkD;HL$raeH}~bP31aG@YXa{OW+1Gd_fx`SJ&ZtXY9&L z1ln@b5&8Elcb`zYp|}rW?1ceA+VtO;w}#!=H##Hf=I7v?4Uv8DunnJpYu1)6D98Mw z9If<_Ax)M;_j!b zXu6r1jg3TG-=-h53Sv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y4`xA*xeJrvp?lu)=IfwZfy{ZKikFdrFV1xSuo&!B2>ecigP z?2jjg(J-u4Nv}(xD{;a$#__iIllBTy30*+fSWW}s&W(0xwvWDNcvE>~iSBLE{l z`;a;9gWC}Ca@a$@zHh$jxI!=ZqQ?%-ii2rO2q`k0|Dy=g=%-3to`>cBA`@KA9`T|6 z7BA&|Cl#jJOn6N`3#PY8ijn+?4%2V_a&mY7yWRbkH-MdtD5T6&ZKHNzhlKqE{^SAO z63~*rPSDY)Mp~(jq;cDl-#zu1i>vMWOXhpSb1sRwJaF&4@(Xp93nmX^56w=x^(7m* z)NUs;6BE})$g)r3u%^u;-+8{xZ&=NnIIiAR^rxh#!hIEP(Y^ZmH%C6|ZwXIqk~mZ$ zIJau4cv^Wkf$VJmz~tTJxFPzeV<~HR4x%(xya*X*{&m-$cC&Y=-1`p&=z26%{?iJn zKxvU1nVI0$0{(*w!a~NDnODb|V~uH_fufc3f2v>>vs^w;_UwpX+4KCxwp3UL8G#+2 z>u~@W2{dOESE8EEb&Lz${l+4T*E^tmcrjZgU#elR0KjZmIS=ydbaK@@0}%OMdEF9E zfbIvVa)qiZYggc3}oX$W8r2A=mXW-u+Fl94!Fp zV7MQ*qRwM6-w|ixyK(Mo^^McptocfvtpcRI8tb?C5 zlIsyl0)P2^J|-NM#WP-?pdDUqC5qm{i1;kMyfVaL+dzI9h#D#B_u=mMQTY608j|Jm zG;0f@)o@~Upaq#P&diP#Es98LYi3FRA{tIL5-x86$*?xC(Hjb3fQhqZBTx|6rE0}L zsl|%UI9J;G7*}#29N-LzBI#g`x~=_tA|n6+x2zG#qvgBoSbipqU9AnKteZI&aSoeM&4%5S}~|n)1{MsXsc};H_FouW|BP zK%YfTl3uZ!aM&44Y5m+m4w1tPlAkWv<_=9YWfUXF-oHIpgyK3*H4OQ la+)>wz16{CAt=5az{{lb5A^89R diff --git a/res/layout/add_event.xml b/res/layout/add_event.xml deleted file mode 100644 index 885c616..0000000 --- a/res/layout/add_event.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/ro/ieval/unical/AddEventActivity.java b/src/ro/ieval/unical/AddEventActivity.java index 3259093..bf4a8bb 100644 --- a/src/ro/ieval/unical/AddEventActivity.java +++ b/src/ro/ieval/unical/AddEventActivity.java @@ -33,7 +33,6 @@ public final class AddEventActivity extends Activity implements OnDateSetListene @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setContentView(R.layout.add_event); setTitle(R.string.add_event_title); final ActionBar actionBar = getActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); diff --git a/src/ro/ieval/unical/AddEventTabListener.java b/src/ro/ieval/unical/AddEventTabListener.java index aa9c763..2a89db7 100644 --- a/src/ro/ieval/unical/AddEventTabListener.java +++ b/src/ro/ieval/unical/AddEventTabListener.java @@ -12,9 +12,10 @@ import java.text.SimpleDateFormat; import java.util.Date; public class AddEventTabListener implements ActionBar.TabListener { - public Fragment fragment; + private Fragment fragment; private Event ev; - int tabId; + private boolean isAdded = false; + private int tabId; public AddEventTabListener(final Fragment fragment,Event e,int tabId) { this.fragment = fragment; @@ -24,12 +25,17 @@ public class AddEventTabListener implements ActionBar.TabListener { @Override public void onTabSelected(final Tab tab, final FragmentTransaction ft) { - ft.replace(R.id.fragment_container, fragment); + if(isAdded) + ft.attach(fragment); + else { + isAdded = true; + ft.add(android.R.id.content, fragment); + } + switch (tabId) { case 0: - if(fragment.getView()==null) System.err.println("MuieLaComisie"); //EditText title =(EditText) fragment.getView().findViewById(R.id.eventtitle); - // title.setText(ev.title, TextView.BufferType.EDITABLE); + //title.setText(ev.title, TextView.BufferType.EDITABLE); break; } } @@ -49,7 +55,7 @@ public class AddEventTabListener implements ActionBar.TabListener { ev.dtstart=s.getTime(); ev.dtend=s.getTime(); } catch (ParseException e) { - e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. + e.printStackTrace(); } break; @@ -59,12 +65,11 @@ public class AddEventTabListener implements ActionBar.TabListener { case 2: break; } - ft.remove(fragment); + ft.detach(fragment); } @Override public void onTabReselected(final Tab tab, final FragmentTransaction ft) { - // TODO Auto-generated method stub - + // do nothing } } -- 2.39.2