Skip to content

Commit

Permalink
Merge pull request #5 from Kaiserdragon2/Features
Browse files Browse the repository at this point in the history
Icons from Icon Packs
  • Loading branch information
Kaiserdragon2 authored Jan 15, 2022
2 parents 4e40d07 + 53f308b commit af59d39
Show file tree
Hide file tree
Showing 9 changed files with 368 additions and 95 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId 'de.kaiserdragon.iconrequest'
minSdkVersion 21
targetSdkVersion 31
versionName "1.5.5"
versionCode 5
versionName "1.7"
versionCode 6
}

buildTypes {
Expand Down
13 changes: 13 additions & 0 deletions app/src/main/java/de/kaiserdragon/iconrequest/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.kaiserdragon.iconrequest;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
Expand All @@ -12,8 +13,15 @@
import androidx.appcompat.app.AppCompatDelegate;
import androidx.appcompat.widget.Toolbar;

import java.util.ArrayList;


public class MainActivity extends AppCompatActivity {
private static final String TAG = "MainActivity";
private static final boolean DEBUG = true;

private static ArrayList<iPackInfo> appListFilter = new ArrayList<>();
private Context context;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -40,6 +48,9 @@ public boolean onCreateOptionsMenu(Menu menu) {

public void start(boolean update) {
Intent intent = new Intent(Intent.ACTION_MAIN);
//if (DEBUG) Log.v(TAG, String.valueOf(getAvailableIconPacks(true)));
//populateView(appListFilter);

intent.putExtra("update", update);
intent.setComponent(new ComponentName(getPackageName(), getPackageName() + ".RequestActivity"));
startActivity(intent);
Expand All @@ -59,4 +70,6 @@ public int loadData() {
SharedPreferences sharedPreferences = getSharedPreferences("SharedPrefs", MODE_PRIVATE);
return sharedPreferences.getInt("DarkModeState", -1);
}


}
Loading

0 comments on commit af59d39

Please sign in to comment.