Skip to content

Commit

Permalink
profiles: hide splash screen after creation
Browse files Browse the repository at this point in the history
Previously the splash screen would go away even if the
user actually cancle the dialog.
Fix this by hiding it later, when there is actually a
profile.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
  • Loading branch information
Blechd0se committed Aug 5, 2014
1 parent e453aab commit 7f6edcb
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
break;
}

// Hide the "empty" view since there is now at least one item in the list.
mContainerView.findViewById(android.R.id.empty).setVisibility(View.GONE);
mContainerView.findViewById(R.id.empty_image).setVisibility(View.GONE);

showDialog(new EditText(mContext));
break;
case R.id.action_reload:
Expand Down Expand Up @@ -263,6 +259,11 @@ else if (allProfiles.contains(profileTitle + ".xml"))
// Only show showcase once;
if (output == 0)
DrawFirstStart(R.string.showcase_perapp_profiles, R.string.showcase_perapp_profiles_sum, FILENAME_PERAPP, null);

// Hide the "empty" view since there is now at least one item in the list.
mContainerView.findViewById(android.R.id.empty).setVisibility(View.GONE);
mContainerView.findViewById(R.id.empty_image).setVisibility(View.GONE);

}

}
Expand Down

0 comments on commit 7f6edcb

Please sign in to comment.