From ec6071d9d7a3af19dd599c246ed8d96cbed68429 Mon Sep 17 00:00:00 2001 From: Javier Santos Date: Wed, 10 Jun 2015 23:37:15 +0200 Subject: [PATCH 1/5] Add scroller (experimental) --- app/app.iml | 2 ++ app/build.gradle | 1 + .../mlmanager/activities/MainActivity.java | 9 +++++++ app/src/main/res/layout/activity_about.xml | 5 ++-- app/src/main/res/layout/activity_app.xml | 4 +-- app/src/main/res/layout/activity_main.xml | 25 +++++++++++++------ 6 files changed, 33 insertions(+), 13 deletions(-) diff --git a/app/app.iml b/app/app.iml index b2bb070..1fba806 100644 --- a/app/app.iml +++ b/app/app.iml @@ -80,6 +80,7 @@ + @@ -110,6 +111,7 @@ + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 0aab3fb..71dcae0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -31,6 +31,7 @@ dependencies { compile 'com.afollestad:material-dialogs:0.7.5.5' compile 'com.github.yukuku:ambilwarna:2.0' compile 'com.pnikosis:materialish-progress:1.5' + compile 'xyz.danoz:recyclerviewfastscroller:0.1.3' compile('com.mikepenz:materialdrawer:3.0.6@aar') { transitive = true } diff --git a/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java b/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java index 52a9f62..37f5e96 100644 --- a/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java +++ b/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java @@ -33,6 +33,8 @@ import java.util.Comparator; import java.util.List; +import xyz.danoz.recyclerviewfastscroller.vertical.VerticalRecyclerViewFastScroller; + public class MainActivity extends AppCompatActivity { // Load Settings @@ -60,6 +62,7 @@ public class MainActivity extends AppCompatActivity { private Toolbar toolbar; private Context context; private RecyclerView recyclerView; + private VerticalRecyclerViewFastScroller fastScroller; private FloatingActionButton fab; private ProgressWheel progressWheel; @@ -74,8 +77,14 @@ protected void onCreate(Bundle savedInstanceState) { setAppDir(); recyclerView = (RecyclerView) findViewById(R.id.appList); + fastScroller = (VerticalRecyclerViewFastScroller) findViewById(R.id.fast_scroller); progressWheel = (ProgressWheel) findViewById(R.id.progress); + fastScroller.setRecyclerView(recyclerView); + fastScroller.setBarColor(getResources().getColor(R.color.transparent)); + fastScroller.setHandleBackground(getResources().getDrawable(R.drawable.fast_scroller_handle_rounded)); + recyclerView.setOnScrollListener(fastScroller.getOnScrollListener()); + recyclerView.setHasFixedSize(true); LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this); linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL); diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 5be7f71..4df9beb 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -1,7 +1,6 @@ + android:layout_width="match_parent" + android:layout_height="match_parent"> diff --git a/app/src/main/res/layout/activity_app.xml b/app/src/main/res/layout/activity_app.xml index ec7bcce..8575655 100644 --- a/app/src/main/res/layout/activity_app.xml +++ b/app/src/main/res/layout/activity_app.xml @@ -1,6 +1,6 @@ + android:layout_width="match_parent" + android:layout_height="match_parent"> diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 7862427..25a6df3 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,15 +1,15 @@ + xmlns:recyclerviewfastscroller="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent"> - + android:layout_height="match_parent" + android:layout_marginRight="30dp" /> + - + From 4bd1c01ed9eca75af725df4cb9199aa9062065a8 Mon Sep 17 00:00:00 2001 From: Javier Santos Date: Thu, 11 Jun 2015 00:22:00 +0200 Subject: [PATCH 2/5] Better scroller implementation and remove main FAB --- .../mlmanager/activities/MainActivity.java | 37 +----------------- .../activities/SettingsActivity.java | 3 -- .../main/res/drawable-hdpi/ic_settings.png | Bin 1138 -> 0 bytes .../main/res/drawable-mdpi/ic_settings.png | Bin 731 -> 0 bytes .../main/res/drawable-xhdpi/ic_settings.png | Bin 1753 -> 0 bytes .../main/res/drawable-xxhdpi/ic_settings.png | Bin 3153 -> 0 bytes .../res/drawable/fastscroller_rounded.xml | 8 ++++ app/src/main/res/layout/activity_main.xml | 22 +++++------ app/src/main/res/layout/app_layout.xml | 2 +- app/src/main/res/values-es/strings.xml | 2 - app/src/main/res/values/strings.xml | 2 - app/src/main/res/xml/activity_settings.xml | 5 --- 12 files changed, 19 insertions(+), 62 deletions(-) delete mode 100644 app/src/main/res/drawable-hdpi/ic_settings.png delete mode 100644 app/src/main/res/drawable-mdpi/ic_settings.png delete mode 100644 app/src/main/res/drawable-xhdpi/ic_settings.png delete mode 100644 app/src/main/res/drawable-xxhdpi/ic_settings.png create mode 100644 app/src/main/res/drawable/fastscroller_rounded.xml diff --git a/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java b/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java index 37f5e96..8d7bb59 100644 --- a/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java +++ b/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java @@ -1,7 +1,6 @@ package com.javiersantos.mlmanager.activities; import android.content.Context; -import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.graphics.drawable.Drawable; @@ -24,7 +23,6 @@ import com.javiersantos.mlmanager.utils.AppPreferences; import com.javiersantos.mlmanager.utils.UtilsApp; import com.javiersantos.mlmanager.utils.UtilsUI; -import com.melnykov.fab.FloatingActionButton; import com.pnikosis.materialishprogress.ProgressWheel; import java.io.File; @@ -63,7 +61,6 @@ public class MainActivity extends AppCompatActivity { private Context context; private RecyclerView recyclerView; private VerticalRecyclerViewFastScroller fastScroller; - private FloatingActionButton fab; private ProgressWheel progressWheel; @Override @@ -81,8 +78,6 @@ protected void onCreate(Bundle savedInstanceState) { progressWheel = (ProgressWheel) findViewById(R.id.progress); fastScroller.setRecyclerView(recyclerView); - fastScroller.setBarColor(getResources().getColor(R.color.transparent)); - fastScroller.setHandleBackground(getResources().getDrawable(R.drawable.fast_scroller_handle_rounded)); recyclerView.setOnScrollListener(fastScroller.getOnScrollListener()); recyclerView.setHasFixedSize(true); @@ -91,7 +86,6 @@ protected void onCreate(Bundle savedInstanceState) { recyclerView.setLayoutManager(linearLayoutManager); setNavigationDrawer(appAdapter, appSystemAdapter, recyclerView); - setFAB(); progressWheel.setBarColor(appPreferences.getPrimaryColorPref()); progressWheel.setVisibility(View.VISIBLE); @@ -118,36 +112,6 @@ private void setNavigationDrawer(AppAdapter appAdapter, AppAdapter appSystemAdap UtilsUI.setNavigationDrawer(this, getApplicationContext(), toolbar, appAdapter, appSystemAdapter, recyclerView); } - private void setFAB() { - fab = (FloatingActionButton) findViewById(R.id.fab); - if (appPreferences.getFABShowPref()) { - fab.setVisibility(View.VISIBLE); - fab.setImageDrawable(getResources().getDrawable(R.drawable.ic_settings)); - fab.setBackgroundColor(appPreferences.getFABColorPref()); - fab.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - startActivity(new Intent(getApplicationContext(), SettingsActivity.class)); - overridePendingTransition(R.anim.slide_in_right, R.anim.fade_back); - } - }); - - recyclerView.setOnScrollListener(new HidingScrollListener() { - @Override - public void onHide() { - fab.hide(); - } - - @Override - public void onShow() { - fab.show(); - } - }); - } else { - fab.setVisibility(View.INVISIBLE); - } - } - class getInstalledApps extends AsyncTask { public getInstalledApps() {} @@ -243,6 +207,7 @@ protected void onPostExecute(Void aVoid) { appAdapter = new AppAdapter(createList(appListName, appListAPK, appListVersion, appListSource, appListData, appListIcon, false), context); appSystemAdapter = new AppAdapter(createList(appSystemListName, appSystemListAPK, appSystemListVersion, appSystemListSource, appSystemListData, appSystemListIcon, true), context); + fastScroller.setVisibility(View.VISIBLE); recyclerView.setAdapter(appAdapter); progressWheel.setVisibility(View.GONE); diff --git a/app/src/main/java/com/javiersantos/mlmanager/activities/SettingsActivity.java b/app/src/main/java/com/javiersantos/mlmanager/activities/SettingsActivity.java index 818269f..31035a1 100644 --- a/app/src/main/java/com/javiersantos/mlmanager/activities/SettingsActivity.java +++ b/app/src/main/java/com/javiersantos/mlmanager/activities/SettingsActivity.java @@ -27,7 +27,6 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer private SharedPreferences prefs; private Preference prefVersion, prefDeleteAll, prefDefaultValues, prefNavigationBlack; private AmbilWarnaPreference prefPrimaryColor, prefFABColor; - private CheckBoxPreference prefFABShow; private ListPreference prefCustomFilename, prefSortMode; private String versionName; private int versionCode; @@ -46,7 +45,6 @@ public void onCreate(Bundle savedInstanceState) { prefVersion = findPreference("prefVersion"); prefPrimaryColor = (AmbilWarnaPreference) findPreference("prefPrimaryColor"); prefFABColor = (AmbilWarnaPreference) findPreference("prefFABColor"); - prefFABShow = (CheckBoxPreference) findPreference("prefFABShow"); prefDeleteAll = findPreference("prefDeleteAll"); prefDefaultValues = findPreference("prefDefaultValues"); prefNavigationBlack = findPreference("prefNavigationBlack"); @@ -97,7 +95,6 @@ public boolean onPreferenceClick(Preference preference) { public boolean onPreferenceClick(Preference preference) { appPreferences.setPrimaryColorPref(getResources().getColor(R.color.primary)); appPreferences.setFABColorPref(getResources().getColor(R.color.fab)); - prefFABShow.setChecked(false); return true; } }); diff --git a/app/src/main/res/drawable-hdpi/ic_settings.png b/app/src/main/res/drawable-hdpi/ic_settings.png deleted file mode 100644 index f6e2693082900b11f64f5a3ed819b39b3d6fba05..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1138 zcmV-&1daQNP)={BSZf?bp%Bas;*yI@g~ zAYm6QiF(N%dMPlbz^9Z#C`ra{RQ8ZDb{Q%QoJQ(JCIZ2-gs}#Lu`imLe!ct;t=XLU zoH;Y!*9@EmhrRb&d+ojU-s^UjSq?emkV6hRR2YC!ZH%8OhiFp!F0c)l1*`zVOgR8R zFaN;+&^y_63zb$K;5y(Lp=!+R0W-VT%ubluYT#p_Z93olle+OwG!D)tIz_u_+S&wg zy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V1h=eU6cR- diff --git a/app/src/main/res/drawable-xhdpi/ic_settings.png b/app/src/main/res/drawable-xhdpi/ic_settings.png deleted file mode 100644 index 6c2d5ccf904ea03c29aa7f4dd8ac5517ab37dabd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1753 zcmV;~1}6E5P)WcX?_&dS8*mi(+DNy8OMn6Xi(cS(^nDXB7HA()yAPZP zJPU00LjMk20h|j=0lw+-cYyuCPe+>R-w3?xMXo83`C?=VKN>NIBM^XAU?*?@_;AtU zfcve0tFyKv!3stLw*Y;>3uTJ}W<^%;)kaxB^J&(>BuOi?HTti}U5@y3m!zGN6hatQ zz8se|0qsC1&~Y+y1MCL&0%MZ$xc?R2{Tqgz|EH!4%mZFCnRx=Jm9#y}iw9Uy;Qtp! zSK`w^^RU=;|DFtVB=x_D{Po|!S<#NR0CxkQvZYK14g+sn{$5{!qk-|jm985AwzxhF zhg}~7{02A%tdGh+2yEqlaSJdFr~yBW$~OX|fJwlmkrECAuK@cZ*~f;}=?~nTEOIBX zHeqimUQfRFX3P#a8~6vX3;2`k4*~Z9F9E+FZdce0v$MhA{>U|gSz+cby}<4MJw7`} zPW#~(oyuL_vBBVFU}n^JXKLoaM7z#qz>VqcFqE74@My;)>PPywP6`9-{l4gYv zHrMH!y&;5!l73rI|H}}s2SnxiZ2svL!0 z=Dq@OX2b`M`u8GWOf+uRcT+ZxsII9I7Etr9wgWqo$zC1>J{_3?qPEWg%l$j6Z%ur9 zPtxbgtls_3_U`upTU_1-%mHRvQKPKb4%fB%cW9IXCIQ!&qQ)$4ToT*Y9Nau*n!Cg7 z?-?gFI&&28lSBdU0Na3{n{L;lpsC5fuZwR3FS^r*b(^WE_L~*9S7{U;s=1wmyCCV)9d}fLFX1G51KV6gRDv>`AkG zf_cS;q|N+BW`t^{pxq`uHy7;S3De(ACM_F*?cUiu>;<}VEM-oPY){D?7v#uKX?X4= zd9AsF!DDK{I32*pfb-2HGc0qMJj&7LdB6{%`h}U*4Mnb?5eisU$2g0VHV1rzycE49 zWSBRU$&$Y&roYbT!{MBTz6q>1t2`K$KYfx{;bw=`8FnSHz%jen34i}>$le2iPezXz zcX_g1z(;{2i2_Cgt!{gTgO~+2<&%wbllxd~{t#QxBhG~X+7{+No{ezC+q99 vydF22krgFcD^#dZp+bcU6)IGya7uU&*q4U8evx=+00000NkvXXu0mjfd&N*; diff --git a/app/src/main/res/drawable-xxhdpi/ic_settings.png b/app/src/main/res/drawable-xxhdpi/ic_settings.png deleted file mode 100644 index b8f19b0df4e3d14b100885ce4d83e7d07c466e2a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3153 zcmZvf`9Bkm1I9NC&6Oh}Oc|QHl(G`~3cWzh2Mt{uiDn?W)~nUar$z004j&a>df|pW*-IILE(UDU3GwCk|iO zWy^p5#~+KXBmjVi17dm689m1!#)NyhNWSe=V!3v!#SNwQAS&ypc>K^${7u@{-h>T_u$@ZOy456SPa(6Gg!D1~Pt1C?u7%K~&fEMVj z+?@xNq&u+P(A~e1?%W3-<`>ifoYgI}Vrcm_oeNwKGM!b&Q?e@gf0m~d_PB40y83iJ z9w}wAZGx<=(?u=-%_X;Vv-ZM(tDxlS62daYiCP6JH0B>hKQD%l8%`sBuzDjF4BHgZ zUz2uH6I!92Qy*|2OsYC7Z7qXlZ-D50pVmq+>!o#KjfeNmQQbWB)5^p$0V(d|dukfx z_YI3G%uKJ1>+(biw75=gEdI5{$DTL##-j+8mshEq7r`7<8}{(@w!2v>8Uy9tT`2?m1l-;=7hm91BpVA&dDkERg+7mM8R;Fq*VKx;AoDky7J&scM&nf7X{@A^loV( zjeWibi@V5TehG|Lc|H;R0Zcc{?YAaaOdUH=!~s7Ke)ZD{2Wlv{AKAU{0kv~H9r;RA zahd_^dGd#?T)mS?99p+tGFl3PKk!0&Z{5CRy+vP^rnm<2O=oonsIe319dcL&$}Wa? zQM;b9M!CKuMEOG@!0V9pSq$uOxom7Ja2*&H%blP%+tK>d6JuX+-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ounded.xml new file mode 100644 index 0000000..db15982 --- /dev/null +++ b/app/src/main/res/drawable/fastscroller_rounded.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 25a6df3..a067f86 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,6 +1,6 @@ + android:layout_height="match_parent" /> + android:paddingEnd="@dimen/margin_small" + + recyclerviewfastscroller:rfs_barColor="@color/transparent" + recyclerviewfastscroller:rfs_handleBackground="@drawable/fastscroller_rounded"/> - - - diff --git a/app/src/main/res/layout/app_layout.xml b/app/src/main/res/layout/app_layout.xml index 6e1f982..ece681a 100644 --- a/app/src/main/res/layout/app_layout.xml +++ b/app/src/main/res/layout/app_layout.xml @@ -44,7 +44,7 @@ android:maxWidth="50dp" android:maxHeight="50dp" android:src="@mipmap/ic_launcher" - android:layout_marginRight="14dp" + android:layout_marginRight="20dp" android:layout_marginEnd="20dp" android:layout_alignTop="@+id/txtName" android:layout_alignParentRight="true" diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index d40455a..1f30bb8 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -47,8 +47,6 @@ Moderno, sencillo y personalizable gestor de aplicaciones para Android Únete a la comunidad en Google+ ¿Quieres estar al tanto de las novedades de la aplicación? ¡Únete a nuestra comunidad! - Mostrar botón flotante principal - No ocultar el butón flotante (FAB) en la pantalla principal. Requiere reiniciar. Nombre de los archivos APK extraídos Ordenar aplicaciones por Aplicaciones Instaladas diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5761b40..6ebc78f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -48,8 +48,6 @@ Set the primary color for the toolbar and navigation bar. Requires Android 5.0+ Floating button color Set the color for the Floating Action Button (FAB) - Show floating button on main screen - Don\'t hide the Floating Action Button (FAB) on the main screen. Restart required. Show navigation bar in black Don\'t use a custom color for the navigation bar. Restore customizations diff --git a/app/src/main/res/xml/activity_settings.xml b/app/src/main/res/xml/activity_settings.xml index a28b22a..4d00855 100644 --- a/app/src/main/res/xml/activity_settings.xml +++ b/app/src/main/res/xml/activity_settings.xml @@ -37,11 +37,6 @@ android:defaultValue="@color/fab" android:title="@string/settings_fab_color" android:summary="@string/settings_fab_color_description"/> - Date: Thu, 11 Jun 2015 00:38:23 +0200 Subject: [PATCH 3/5] Scroll bar is now outside the Card View --- app/src/main/res/layout/activity_main.xml | 3 ++- app/src/main/res/layout/app_layout.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index a067f86..aecdaa8 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -24,7 +24,8 @@ + android:layout_height="match_parent" + android:layout_marginRight="25dp" /> Date: Thu, 11 Jun 2015 17:03:41 +0200 Subject: [PATCH 4/5] Release 0.4 (10) --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 71dcae0..df731c8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.javiersantos.mlmanager" minSdkVersion 15 targetSdkVersion 22 - versionCode 9 - versionName "0.3.1" + versionCode 10 + versionName "0.4.0" } buildTypes { release { From e46556aacc28d67dea01c37a7d63140dd8a98452 Mon Sep 17 00:00:00 2001 From: Javier Santos Date: Thu, 11 Jun 2015 17:09:59 +0200 Subject: [PATCH 5/5] Delete unnecessary imports --- .../com/javiersantos/mlmanager/activities/AboutActivity.java | 2 -- .../com/javiersantos/mlmanager/activities/MainActivity.java | 1 - .../com/javiersantos/mlmanager/activities/SettingsActivity.java | 1 - .../main/java/com/javiersantos/mlmanager/utils/UtilsApp.java | 1 - 4 files changed, 5 deletions(-) diff --git a/app/src/main/java/com/javiersantos/mlmanager/activities/AboutActivity.java b/app/src/main/java/com/javiersantos/mlmanager/activities/AboutActivity.java index 520b6e7..534f687 100644 --- a/app/src/main/java/com/javiersantos/mlmanager/activities/AboutActivity.java +++ b/app/src/main/java/com/javiersantos/mlmanager/activities/AboutActivity.java @@ -1,7 +1,5 @@ package com.javiersantos.mlmanager.activities; -import android.content.Intent; -import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; diff --git a/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java b/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java index 8d7bb59..095e02e 100644 --- a/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java +++ b/app/src/main/java/com/javiersantos/mlmanager/activities/MainActivity.java @@ -19,7 +19,6 @@ import com.javiersantos.mlmanager.AppInfo; import com.javiersantos.mlmanager.R; import com.javiersantos.mlmanager.adapters.AppAdapter; -import com.javiersantos.mlmanager.listeners.HidingScrollListener; import com.javiersantos.mlmanager.utils.AppPreferences; import com.javiersantos.mlmanager.utils.UtilsApp; import com.javiersantos.mlmanager.utils.UtilsUI; diff --git a/app/src/main/java/com/javiersantos/mlmanager/activities/SettingsActivity.java b/app/src/main/java/com/javiersantos/mlmanager/activities/SettingsActivity.java index 31035a1..897945e 100644 --- a/app/src/main/java/com/javiersantos/mlmanager/activities/SettingsActivity.java +++ b/app/src/main/java/com/javiersantos/mlmanager/activities/SettingsActivity.java @@ -5,7 +5,6 @@ import android.content.SharedPreferences; import android.os.Build; import android.os.Bundle; -import android.preference.CheckBoxPreference; import android.preference.ListPreference; import android.preference.Preference; import android.preference.PreferenceActivity; diff --git a/app/src/main/java/com/javiersantos/mlmanager/utils/UtilsApp.java b/app/src/main/java/com/javiersantos/mlmanager/utils/UtilsApp.java index 946f888..b7f16be 100644 --- a/app/src/main/java/com/javiersantos/mlmanager/utils/UtilsApp.java +++ b/app/src/main/java/com/javiersantos/mlmanager/utils/UtilsApp.java @@ -4,7 +4,6 @@ import android.content.Intent; import android.net.Uri; import android.os.Environment; -import android.util.Log; import com.javiersantos.mlmanager.AppInfo;