summaryrefslogtreecommitdiff
path: root/client/.metadata/.plugins/org.eclipse.core.resources/.history/8b/d056c37d2d0d00131249f322b63acde8
blob: d870b736cfe4beff2f4b8b6ddc8a2752474124c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.macaroon.piztor;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Menu;

public class InitAct extends PiztorAct {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		id = "initAct";
		super.onCreate(savedInstanceState);
		Intent i = new Intent();
		i.putExtra("haha", new Handler());
		AppMgr.init();
		setContentView(R.layout.activity_init);
	}
	
	@Override
	protected void onStart() {
		super.onStart();
		if (UserInfo.token != -1)
			AppMgr.trigger(AppMgr.noToken);
		else {
			//TODO jump to main
		}
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.init, menu);
		return true;
	}

}