From cc4a5a7ef8b400fdf68645f2f69aaa59d7af0f26 Mon Sep 17 00:00:00 2001 From: NimrodSV Date: Fri, 7 Aug 2015 16:27:12 +0300 Subject: [PATCH] Wakelock Blocker [2/2] --- res/drawable-hdpi/ic_menu_save.png | Bin 0 -> 3369 bytes res/drawable-mdpi/ic_menu_save.png | Bin 0 -> 503 bytes res/drawable-xhdpi/ic_menu_save.png | Bin 0 -> 764 bytes res/drawable-xxhdpi/ic_menu_save.png | Bin 0 -> 1160 bytes res/layout/wakelock_blocker.xml | 89 +++++++++++++++++++++++++++ res/layout/wakelock_item.xml | 32 ++++++++++ res/values/slim_strings.xml | 9 +++ res/xml/slim_advanced_settings.xml | 6 ++ 8 files changed, 136 insertions(+) create mode 100644 res/drawable-hdpi/ic_menu_save.png create mode 100644 res/drawable-mdpi/ic_menu_save.png create mode 100644 res/drawable-xhdpi/ic_menu_save.png create mode 100644 res/drawable-xxhdpi/ic_menu_save.png create mode 100644 res/layout/wakelock_blocker.xml create mode 100644 res/layout/wakelock_item.xml diff --git a/res/drawable-hdpi/ic_menu_save.png b/res/drawable-hdpi/ic_menu_save.png new file mode 100644 index 0000000000000000000000000000000000000000..bb593cfc25498b50bc1a32c7ae39740587414dcf GIT binary patch literal 3369 zcmV+^4c79BP)Oz@Z0f2-7z;ux~O9+4z06=<WDR*FRcSTFz- zW=q650N5=6FiBTtNC2?60Km==3$g$R3;-}uh=nNt1bYBr$Ri_o0EC$U6h`t_Jn<{8 z5a%iY0C<_QJh>z}MS)ugEpZ1|S1ukX&Pf+56gFW3VVXcL!g-k)GJ!M?;PcD?0HBc- z5#WRK{dmp}uFlRjj{U%*%WZ25jX z{P*?XzTzZ-GF^d31o+^>%=Ap99M6&ogks$0k4OBs3;+Bb(;~!4V!2o<6ys46agIcq zjPo+3B8fthDa9qy|77CdEc*jK-!%ZRYCZvbku9iQV*~a}ClFY4z~c7+0P?$U!PF=S z1Au6Q;m>#f??3%Vpd|o+W=WE9003S@Bra6Svp>fO002awfh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_save.png new file mode 100644 index 0000000000000000000000000000000000000000..ec244ac7fea6ce1f3476252787aeaaf2b8bb3446 GIT binary patch literal 503 zcmV*-B~y%nrb)E27pC4-orZXVqZ}<>gqZk#GZHfg!g!hhsYIWGo8UN zS>P(JguV~r7GB^v?#0?RcJT5<21zFQ5=WUv_anertUtmVY^bX&J+~>qumL)>38+i# zj&VEALSwhn73n2rU2jYY*7Df zP@c6IKV1dz9j|dT5n-Rj<5d8CT|Z!RME@Cg0@SPmIHM?U%)CR_rqpv?bf~VLU}GeJ zuXwd8pub3$lWyq-y3J&5DL{Xz4i)9@Oo`5hZMSR&Tlg5yvYAqz!@-{b+IS`JM_KZ@ t5+s-KDE790^|Q;C{Q@Ut?DzYpCw*Iu8^pZ%oO>2}w%^Uco8&MtU(czAgH&j@N~WGTc+ z@mrlACwe+&nqMdLNS2<;ulueQfnvdcIMKiKm5ZC^o1ulgS$+!=O?KcFa21#UE5H(Q zvOi;|Mh4j$7)$>HAO&*Z1#l1eHk06Qpe%P_1l$Bp0?S77h4O(Y{~UOKti1+K%lHUb z0!{&UfTyC1su-a|0>!*sl(uoZbzlRyAZ5Q1KmbH!=`-N0STkr~c?G-!?z&_p*ONE^R)KRZ zVnG2PD^+Um1d3D`C)XWaXu%~BxDkkx1G$9-EnFz5$WX(?Kv4^62RVmg05wz)F9VN( z%PnKz4RC)b0%hfSUao<<1%dS;YatDM1#UQ`!SWy+B#4!eIFR=qmpW(w7mAae4sUQf zP2PfB2EgrU_#)3UOJUl%9CHw&Yz`HMHO!M*p0000 z6uc>T@Zevdc<`cvAT1(-2djwK=EshQyrI+3WRvW^WLM_Fux--L%zo$lzVqIjO#)*K zt_62*;cdYR9s&*zCoCc=F{Tf*S zXhbGrb-=Q!)`go{SJ?`@i5crEa1AH{bHKbargg2uKm|Afe0IPbs*AZl7o-JUYKk>0 z=yhogr`6>8SHLN@xOd=;9RUY{2LgIMg$*bZagg1SigH86C0e1&`=|p4fQP_N0k`A> z#l><_2lfF|z;5}yq(dfVG3%fkP$z+5A6+<{DNd{pw!eu&y2RN_hdO>>1QqC$0m3 z2DmjxvTI&qp>C8}fFfX0b{<=&(O%>TSP5KA8z8L}9+fzU0mUs988bH`9SL)6EvBRZ zlySxgP&yma%*6r`>v?n!5=S&ystHg@R{1Q=GH8?}X>4JRU4WOseJ%IW1gIdf&^F+d z)MPYl6Yvc9rNtsm4JrdOz+*{BH3G*cPM&7+=3@4o>pXByah$TSHFp|Rb9R_8CH--A z$jAazHByX002H-E*ZpSj-BbahJi3@Yeu>)bLTT(|R*TdMX_^4pLf9&rPh + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/wakelock_item.xml b/res/layout/wakelock_item.xml new file mode 100644 index 00000000000..ac8c64c5ce5 --- /dev/null +++ b/res/layout/wakelock_item.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/res/values/slim_strings.xml b/res/values/slim_strings.xml index 7319b1e7ce0..2f8be43be01 100644 --- a/res/values/slim_strings.xml +++ b/res/values/slim_strings.xml @@ -1314,4 +1314,13 @@ 7 5 + + Wakelock blocker + Block system wakelocks use with caution + Save + Available wakelocks + Reload + Proceed with caution + Blocking wakelocks have the potential to cause instability, crashes or data loss + diff --git a/res/xml/slim_advanced_settings.xml b/res/xml/slim_advanced_settings.xml index 63d8880bad6..75efcc0f468 100644 --- a/res/xml/slim_advanced_settings.xml +++ b/res/xml/slim_advanced_settings.xml @@ -69,6 +69,12 @@ android:targetClass="com.cyngn.maxxaudio.activity.ActivityMusic" /> +