Initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package com.twitter.sdk.android.tweetcomposer;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import com.twitter.sdk.android.core.TwitterAuthToken;
|
||||
import com.twitter.sdk.android.core.TwitterSession;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ComposerActivity extends Activity {
|
||||
|
||||
interface Finisher {
|
||||
void a();
|
||||
}
|
||||
|
||||
class FinisherImpl implements Finisher {
|
||||
FinisherImpl() {
|
||||
}
|
||||
|
||||
@Override // com.twitter.sdk.android.tweetcomposer.ComposerActivity.Finisher
|
||||
public void a() {
|
||||
ComposerActivity.this.finish();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.app.Activity
|
||||
protected void onCreate(Bundle bundle) {
|
||||
super.onCreate(bundle);
|
||||
Intent intent = getIntent();
|
||||
TwitterSession twitterSession = new TwitterSession((TwitterAuthToken) intent.getParcelableExtra("EXTRA_USER_TOKEN"), -1L, "");
|
||||
Card card = (Card) intent.getSerializableExtra("EXTRA_CARD");
|
||||
String stringExtra = intent.getStringExtra("EXTRA_HASHTAGS");
|
||||
setTheme(intent.getIntExtra("EXTRA_THEME", R$style.ComposerLight));
|
||||
setContentView(R$layout.tw__activity_composer);
|
||||
new ComposerController((ComposerView) findViewById(R$id.tw__composer_view), twitterSession, card, stringExtra, new FinisherImpl());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user