Skip to content
This repository was archived by the owner on Jul 27, 2019. It is now read-only.

Commit 6c62578

Browse files
committed
Added else block to show Toast. We can handle this more elegantly with AdobeUXAssetBrowserConfiguration filters.
1 parent 1537def commit 6c62578

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

asset-browser-ui/app/src/main/java/com/adobe/assetbrowserui/MainActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import android.view.View;
1515
import android.widget.Button;
1616
import android.widget.ImageView;
17+
import android.widget.Toast;
1718

1819
import com.adobe.creativesdk.foundation.auth.AdobeAuthException;
1920
import com.adobe.creativesdk.foundation.auth.AdobeAuthSessionHelper;
@@ -194,6 +195,10 @@ public void onProgress(double v) {
194195
photoAsset.downloadRendition(renditionMap.get(AdobePhotoAsset.AdobePhotoAssetRenditionImage2048), downloadCallBack);
195196
}
196197

198+
else {
199+
Toast.makeText(MainActivity.this, "Please choose a Lightroom Photo", Toast.LENGTH_LONG).show();
200+
}
201+
197202
break;
198203
}
199204
}

0 commit comments

Comments
 (0)