init
This commit is contained in:
@ -0,0 +1,38 @@
|
||||
package net.droidtech.rsautils;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
/**
|
||||
* Created by root on 2021/2/28.
|
||||
*/
|
||||
|
||||
public class TextDecryptionActivity extends Activity {
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState){
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
Intent intent=new Intent(this, MainActivity.class);
|
||||
|
||||
intent.putExtra("ActionType",MainActivity.ACTION_DECRYPT);
|
||||
|
||||
CharSequence text=this.getIntent().getCharSequenceExtra(Intent.EXTRA_PROCESS_TEXT);
|
||||
|
||||
if(text==null){
|
||||
|
||||
text=this.getIntent().getStringExtra(Intent.EXTRA_TEXT);
|
||||
|
||||
}
|
||||
|
||||
intent.putExtra("Text", text);
|
||||
|
||||
this.startActivity(intent);
|
||||
|
||||
this.finish();
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user