Log invite IDs

This commit is contained in:
M66B 2015-11-07 18:18:37 +01:00
parent 14a12685fe
commit 9c86cecec3
1 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,7 @@ import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SearchView;
import android.support.v7.widget.SwitchCompat;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.util.Log;
import android.view.LayoutInflater;
@ -328,6 +329,12 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
startActivity(donate);
}
} else if (requestCode == REQUEST_INVITE) {
if (resultCode == RESULT_OK) {
String[] ids = AppInviteInvitation.getInvitationIds(resultCode, data);
Log.d(TAG, "Invite ID=" + TextUtils.join(",", ids));
}
} else {
Log.w(TAG, "Unknown activity result request=" + requestCode);
super.onActivityResult(requestCode, resultCode, data);