Skip to content

Commit

Permalink
去除魅族特殊情况,升级Flyme即可解决bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daimajia committed Jan 24, 2014
1 parent 752e32a commit d46726a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/com/zhan_dui/animetaste/PlayActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.baidu.cyberplayer.core.BVideoView.OnErrorListener;
import com.baidu.cyberplayer.core.BVideoView.OnPreparedListener;
import com.basv.gifmoviewview.widget.GifMovieView;
import com.github.johnpersano.supertoasts.SuperToast;
import com.loopj.android.http.JsonHttpResponseHandler;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Picasso.LoadedFrom;
Expand Down Expand Up @@ -799,6 +800,16 @@ private void setMaxSize() {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
if(Build.MODEL.equals("M040")){
if(!mSharedPreferences.getBoolean("Meizu",false)){
SuperToast superToast = new SuperToast(this);
superToast.setDuration(12000);
superToast.setText("魅族某些版本固件可能存在兼容性问题,建议您升级到最新固件");
superToast.setIconResource(SuperToast.Icon.Dark.INFO, SuperToast.IconPosition.LEFT);
superToast.show();
mSharedPreferences.edit().putBoolean("Meizu",true).commit();
}
}
getSupportActionBar().hide();
RelativeLayout.LayoutParams param = new RelativeLayout.LayoutParams(
Screen.getScreenWidth(getWindowManager()),
Expand Down

0 comments on commit d46726a

Please sign in to comment.