Skip to content

Commit

Permalink
More bugfixes, Fixed gifs once and for all
Browse files Browse the repository at this point in the history
  • Loading branch information
SlideCI committed Feb 17, 2016
1 parent f92fbc2 commit 1fcbafb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import me.ccrama.redditslide.Visuals.Palette;

Expand All @@ -16,8 +15,8 @@ public class FullScreenActivity extends BaseActivityAnim {
protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
//TODO something like this getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
// WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);

setRecentBar(null, Palette.getDefaultColor());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1130,8 +1130,13 @@ public boolean onEditorAction(TextView arg0, int arg1, KeyEvent arg2) {
Intent inte = new Intent(MainActivity.this, SubredditView.class);
inte.putExtra(SubredditView.EXTRA_SUBREDDIT, e.getText().toString());
MainActivity.this.startActivity(inte);
} else
pager.setCurrentItem(usedArray.indexOf(adapter.fitems.get(0)));
} else {
if(usedArray.contains(e.getText().toString())){
pager.setCurrentItem(usedArray.indexOf(e.getText().toString()));
} else {
pager.setCurrentItem(usedArray.indexOf(adapter.fitems.get(0)));
}
}

View view = MainActivity.this.getCurrentFocus();
if (view != null) {
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/java/me/ccrama/redditslide/util/GifUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,6 @@ public void onPrepared(MediaPlayer mp) {
});

} else {
if (s.endsWith("v")) {
s = s.substring(0, s.length() - 1);
}
s = s.trim();


final String finalS = s;
Log.v("Slide", "https://gfycat.com/cajax/checkUrl/" + s);
Expand Down

0 comments on commit 1fcbafb

Please sign in to comment.