From 0ee860030ae497248bb80531d2010cfbfe70cdb1 Mon Sep 17 00:00:00 2001 From: Collinux Date: Fri, 13 Apr 2018 10:28:52 -0400 Subject: [PATCH] Removed all drawable and layout resources. --- .gitignore | 26 +++++++++---------- MinimalistLauncher/build.gradle | 3 +-- .../src/main/AndroidManifest.xml | 2 ++ .../launcher/minimalist/com/MainActivity.java | 20 ++++++++++---- .../main/res/drawable/ic_menu_black_24dp.xml | 4 --- .../src/main/res/drawable/list_item_style.xml | 5 ---- .../src/main/res/layout/activity_main.xml | 8 ------ .../src/main/res/layout/list_item.xml | 8 ------ 8 files changed, 31 insertions(+), 45 deletions(-) delete mode 100644 MinimalistLauncher/src/main/res/drawable/ic_menu_black_24dp.xml delete mode 100644 MinimalistLauncher/src/main/res/drawable/list_item_style.xml delete mode 100644 MinimalistLauncher/src/main/res/layout/activity_main.xml delete mode 100644 MinimalistLauncher/src/main/res/layout/list_item.xml diff --git a/.gitignore b/.gitignore index 3ef6de9..bf6bd7f 100644 --- a/.gitignore +++ b/.gitignore @@ -12,43 +12,43 @@ *.class # Generated files -android/bin/ -android/en/ -andoid/out/ +bin/ +en/ +out/ # Gradle files -android/.gradle/ -android/build/ +.gradle/ +build/ android/.gradle/ -android/build/ +build/ # Local configuration file (sdk path, etc) -android/local.properties +local.properties # Proguard folder generated by Eclipse -android/proguard/ +proguard/ # Log Files *.log # Android Studio Navigation editor temp files -android/.navigation/ +.navigation/ # Android Studio captures folder -android/captures/ +captures/ # IntelliJ *.iml .idea/ -android/.idea/ +.idea/ # Keystore files # Uncomment the following line if you do not want to check your keystore files in. #*.jks # External native build folder generated in Android Studio 2.2 and later -android/.externalNativeBuild +.externalNativeBuild # Google Services (e.g. APIs or Firebase) -android/google-services.json +google-services.json diff --git a/MinimalistLauncher/build.gradle b/MinimalistLauncher/build.gradle index 5f6a448..c93465f 100644 --- a/MinimalistLauncher/build.gradle +++ b/MinimalistLauncher/build.gradle @@ -4,7 +4,7 @@ android { compileSdkVersion 27 defaultConfig { applicationId "launcher.simple.com.simplelauncher" - minSdkVersion 16 + minSdkVersion 4 targetSdkVersion 27 versionCode 1 versionName "1.0" @@ -12,7 +12,6 @@ android { buildTypes { release { minifyEnabled true - shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } diff --git a/MinimalistLauncher/src/main/AndroidManifest.xml b/MinimalistLauncher/src/main/AndroidManifest.xml index dc92295..408f21d 100644 --- a/MinimalistLauncher/src/main/AndroidManifest.xml +++ b/MinimalistLauncher/src/main/AndroidManifest.xml @@ -6,6 +6,8 @@ android:icon="@android:drawable/ic_menu_sort_by_size" android:label="Minimalist Launcher" android:excludeFromRecents="true" + android:clearTaskOnLaunch="true" + android:stateNotNeeded="true" android:theme="@android:style/Theme.Black.NoTitleBar"> ( - this, R.layout.list_item, new ArrayList()); + adapter = new ArrayAdapter( + this, android.R.layout.simple_list_item_1, new ArrayList()); packageNames = new ArrayList<>(); - listView = findViewById(R.id.listView); // Tap on an item in the list to launch the app listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @@ -67,7 +75,9 @@ public class MainActivity extends Activity { } private void fetchAppList() { - adapter.clear(); // Start from a clean adapter when refreshing the list + // Start from a clean adapter when refreshing the list + adapter.clear(); + packageNames.clear(); // Query the package manager for all apps List activities = packageManager.queryIntentActivities( diff --git a/MinimalistLauncher/src/main/res/drawable/ic_menu_black_24dp.xml b/MinimalistLauncher/src/main/res/drawable/ic_menu_black_24dp.xml deleted file mode 100644 index 2ffa375..0000000 --- a/MinimalistLauncher/src/main/res/drawable/ic_menu_black_24dp.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - diff --git a/MinimalistLauncher/src/main/res/drawable/list_item_style.xml b/MinimalistLauncher/src/main/res/drawable/list_item_style.xml deleted file mode 100644 index f967a91..0000000 --- a/MinimalistLauncher/src/main/res/drawable/list_item_style.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - diff --git a/MinimalistLauncher/src/main/res/layout/activity_main.xml b/MinimalistLauncher/src/main/res/layout/activity_main.xml deleted file mode 100644 index f8eaffd..0000000 --- a/MinimalistLauncher/src/main/res/layout/activity_main.xml +++ /dev/null @@ -1,8 +0,0 @@ - - diff --git a/MinimalistLauncher/src/main/res/layout/list_item.xml b/MinimalistLauncher/src/main/res/layout/list_item.xml deleted file mode 100644 index d33c020..0000000 --- a/MinimalistLauncher/src/main/res/layout/list_item.xml +++ /dev/null @@ -1,8 +0,0 @@ - -