项目整理
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
package com.gh.gamecenter;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
import android.graphics.drawable.Animatable;
|
||||
import android.net.Uri;
|
||||
@ -97,10 +96,14 @@ public class ViewImageActivity extends BaseActivity implements
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
Intent intent = getIntent();
|
||||
urls = intent.getStringArrayListExtra("urls");
|
||||
int current = intent.getIntExtra("current", 0);
|
||||
scaleType = intent.getStringExtra("ScaleType");
|
||||
urls = getIntent().getStringArrayListExtra("urls");
|
||||
int current = getIntent().getIntExtra("current", 0);
|
||||
scaleType = getIntent().getStringExtra("ScaleType");
|
||||
if (getIntent().getBundleExtra("data") != null) {
|
||||
urls = getIntent().getBundleExtra("data").getStringArrayList("urls");
|
||||
current = getIntent().getBundleExtra("data").getInt("current", 0);
|
||||
scaleType = getIntent().getBundleExtra("data").getString("ScaleType");
|
||||
}
|
||||
|
||||
if (savedInstanceState != null) {
|
||||
current = savedInstanceState.getInt("currentItem", 0);
|
||||
|
||||
Reference in New Issue
Block a user