mirror of https://github.com/termux/termux-app
17 lines
368 B
Java
17 lines
368 B
Java
package com.termux.window;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
|
|
/** Simple activity which immediately launches {@link TermuxFloatService} and exits. */
|
|
public class TermuxFloatActivity extends Activity {
|
|
|
|
@Override
|
|
protected void onResume() {
|
|
super.onResume();
|
|
startService(new Intent(this, TermuxFloatService.class));
|
|
finish();
|
|
}
|
|
|
|
}
|