Removed a few TODOs.
This commit is contained in:
parent
91df75c45d
commit
f2123228e3
3 changed files with 0 additions and 7 deletions
|
|
@ -50,8 +50,6 @@ public class AudioFileCoverFetcher implements DataFetcher<InputStream> {
|
||||||
private InputStream fallback(String path) throws FileNotFoundException {
|
private InputStream fallback(String path) throws FileNotFoundException {
|
||||||
File parent = new File(path).getParentFile();
|
File parent = new File(path).getParentFile();
|
||||||
for (String fallback : FALLBACKS) {
|
for (String fallback : FALLBACKS) {
|
||||||
// TODO make it smarter by enumerating folder contents and filtering for files
|
|
||||||
// example algorithm for that: http://askubuntu.com/questions/123612/how-do-i-set-album-artwork
|
|
||||||
File cover = new File(parent, fallback);
|
File cover = new File(parent, fallback);
|
||||||
if (cover.exists()) {
|
if (cover.exists()) {
|
||||||
return stream = new FileInputStream(cover);
|
return stream = new FileInputStream(cover);
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.crashlytics.android.answers.Answers;
|
|
||||||
import com.crashlytics.android.answers.CustomEvent;
|
|
||||||
import com.kabouzeid.appthemehelper.ThemeStore;
|
import com.kabouzeid.appthemehelper.ThemeStore;
|
||||||
import com.kabouzeid.appthemehelper.util.ATHUtil;
|
import com.kabouzeid.appthemehelper.util.ATHUtil;
|
||||||
import com.kabouzeid.appthemehelper.util.NavigationViewUtil;
|
import com.kabouzeid.appthemehelper.util.NavigationViewUtil;
|
||||||
|
|
@ -78,8 +76,6 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
ButterKnife.bind(this);
|
ButterKnife.bind(this);
|
||||||
|
|
||||||
Answers.getInstance().logCustom(new CustomEvent("TEST")); // TODO remove in future update
|
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.KITKAT) {
|
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.KITKAT) {
|
||||||
Util.setStatusBarTranslucent(getWindow());
|
Util.setStatusBarTranslucent(getWindow());
|
||||||
drawerLayout.setFitsSystemWindows(false);
|
drawerLayout.setFitsSystemWindows(false);
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ public abstract class AbsThemeActivity extends ATHToolbarActivity {
|
||||||
MaterialDialogsUtil.updateMaterialDialogsThemeSingleton(this);
|
MaterialDialogsUtil.updateMaterialDialogsThemeSingleton(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO see "materialize" library for setting window flags
|
|
||||||
protected void setDrawUnderStatusbar(boolean drawUnderStatusbar) {
|
protected void setDrawUnderStatusbar(boolean drawUnderStatusbar) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
|
||||||
Util.setAllowDrawUnderStatusBar(getWindow());
|
Util.setAllowDrawUnderStatusBar(getWindow());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue