Search in sources :

Example 6 with TextToast

use of com.ryuunoakaihitomi.rebootmenu.util.TextToast in project rebootmenu by ryuunoakaihitomi.

the class UnRootMode method onRestart.

@Override
protected void onRestart() {
    new Handler().postDelayed(new Runnable() {

        @Override
        public void run() {
            if (!isScreenOn)
                new TextToast(getApplicationContext(), getString(R.string.activity_onrestart_notice));
            isScreenOn = false;
        }
    }, 1000);
    super.onRestart();
}
Also used : TextToast(com.ryuunoakaihitomi.rebootmenu.util.TextToast) Handler(android.os.Handler)

Aggregations

TextToast (com.ryuunoakaihitomi.rebootmenu.util.TextToast)6 Intent (android.content.Intent)3 DialogInterface (android.content.DialogInterface)2 IntentFilter (android.content.IntentFilter)2 Handler (android.os.Handler)2 TargetApi (android.annotation.TargetApi)1 AlertDialog (android.app.AlertDialog)1 ComponentName (android.content.ComponentName)1 ShortcutInfo (android.content.pm.ShortcutInfo)1 ShortcutManager (android.content.pm.ShortcutManager)1 DebugLog (com.ryuunoakaihitomi.rebootmenu.util.DebugLog)1 Random (java.util.Random)1