You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
744 B
Java
24 lines
744 B
Java
package name.mikanoshi.customiuizer;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
|
|
public class CredentialsShortcut extends Activity {
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
|
|
Intent intent = new Intent();
|
|
Intent launchIntent = new Intent(this, Credentials.class);
|
|
intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, launchIntent);
|
|
intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, getResources().getString(R.string.credentials_unlock));
|
|
intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext(this, R.drawable.ic_credentials));
|
|
|
|
setResult(RESULT_OK, intent);
|
|
finish();
|
|
}
|
|
|
|
}
|