package com.farmerbb.taskbar.activity;
import android.content.Intent;
+import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.AsyncTask;
import android.widget.ProgressBar;
import com.farmerbb.taskbar.R;
+import com.farmerbb.taskbar.activity.dark.SelectAppActivityDark;
import com.farmerbb.taskbar.adapter.AppListAdapter;
import com.farmerbb.taskbar.fragment.SelectAppFragment;
import com.farmerbb.taskbar.util.Blacklist;
finish();
if(!noShadow)
- new Handler().post(() -> startActivity(new Intent(SelectAppActivity.this, SelectAppActivity.class)));
+ new Handler().post(() -> {
+ Intent intent = null;
+ SharedPreferences pref3 = U.getSharedPreferences(SelectAppActivity.this);
+
+ switch(pref3.getString("theme", "light")) {
+ case "light":
+ intent = new Intent(SelectAppActivity.this, SelectAppActivity.class);
+ break;
+ case "dark":
+ intent = new Intent(SelectAppActivity.this, SelectAppActivityDark.class);
+ break;
+ }
+
+ startActivity(intent);
+ });
}
}