parent
8814a0d949
commit
bb7be66efe
|
@ -17,6 +17,7 @@
|
|||
package org.thoughtcrime.securesms.scribbles;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
|
@ -33,8 +34,6 @@ public class StickerSelectActivity extends FragmentActivity implements StickerSe
|
|||
|
||||
private static final String TAG = StickerSelectActivity.class.getSimpleName();
|
||||
|
||||
public static final String EXTRA_STICKER_FILE = "extra_sticker_file";
|
||||
|
||||
private static final int[] TAB_TITLES = new int[] {
|
||||
R.drawable.ic_tag_faces_white_24dp,
|
||||
R.drawable.ic_work_white_24dp,
|
||||
|
@ -71,7 +70,7 @@ public class StickerSelectActivity extends FragmentActivity implements StickerSe
|
|||
@Override
|
||||
public void onStickerSelected(String name) {
|
||||
Intent intent = new Intent();
|
||||
intent.putExtra(EXTRA_STICKER_FILE, name);
|
||||
intent.setData(Uri.parse("file:///android_asset/" + name));
|
||||
setResult(RESULT_OK, intent);
|
||||
finish();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue