Clean up and finish the activity in case of errors!
@ -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();
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 5.1 KiB |