Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.v(TAG, "Did super onCreate");

this.showLoadingScreen();
this.mActivity = this;

String mFilesDirectory = mActivity.getFilesDir().getAbsolutePath();
Expand Down Expand Up @@ -325,6 +324,8 @@ protected void showLoadingScreen() {
// 1. if the image is valid and we don't have layout yet, assign this bitmap
// as main view.
// 2. if we have a layout, just set it in the layout.
// 3. If we have an mImageView already, then do nothing because it will have
// already been made the content view or added to the layout.
if (mImageView == null) {
int presplashId = this.resourceManager.getIdentifier("presplash", "drawable");
InputStream is = this.getResources().openRawResource(presplashId);
Expand All @@ -343,12 +344,12 @@ protected void showLoadingScreen() {
ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.FILL_PARENT));
mImageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
}

if (mLayout == null) {
setContentView(mImageView);
} else {
mLayout.addView(mImageView);
if (mLayout == null) {
setContentView(mImageView);
} else {
mLayout.addView(mImageView);
}
}
}

Expand Down