Clean up and finish the activity in case of errors!

This commit is contained in:
Sadique Ali 2013-07-20 21:42:34 -07:00
parent 9660094076
commit 8a489454fb
5 changed files with 2 additions and 0 deletions

View File

@ -45,5 +45,7 @@ public class ReshareCallback implements TitleGrabCallback{
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(activity.getApplicationContext(), errorMessage, duration);
toast.show();
progressBar.setVisibility(View.GONE);
activity.finish();
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB