Commit dfd30545 authored by Thomas Krex's avatar Thomas Krex
Browse files

Push vor dem Umzug

parent b058c6d4
......@@ -11,4 +11,4 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-17
target=android-19
......@@ -69,6 +69,7 @@
android:layout_height="wrap_content"
android:layout_weight="2"
android:hint="@string/prompt_ip"
android:imeOptions="actionNext"
android:maxLines="1"
android:singleLine="true" />
......@@ -81,14 +82,16 @@
android:hint="@string/prompt_port"
android:inputType="number"
android:maxLines="1"
android:nextFocusDown="@+id/password"
android:singleLine="true" />
</LinearLayout>
<EditText
android:id="@+id/password"
android:id="@id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_password"
android:imeOptions="actionDone"
android:inputType="textPassword"
android:maxLines="1"
android:singleLine="true" />
......
......@@ -9,6 +9,7 @@ import tttrec.messages.Annotation;
import tttrec.recording.AudioRecorder;
import tttrec.util.MyColorPickerDialog;
import tttrec.util.ReconnectDialog;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
......@@ -18,6 +19,7 @@ import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
......@@ -63,12 +65,15 @@ public class MainActivity extends Activity {
}
};
View decorView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
getActionBar().hide();
View decorView = getWindow().getDecorView();
timer = (Chronometer) findViewById(R.id.chronometer1);
freehandAnnotationButton = (ImageButton) findViewById(R.id.SelectFreehand);
highlightAnnotationButton = (ImageButton) findViewById(R.id.SelectHighlight);
......@@ -407,4 +412,19 @@ public class MainActivity extends Activity {
colorDialog.dismiss();
}
@TargetApi(Build.VERSION_CODES.KITKAT)
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if (hasFocus) {
annotationView
.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
}
}
}
......@@ -57,6 +57,7 @@ public abstract class GraphicsContext extends Observable {
hextile_fg_encoded = new byte[prefs.bytesPerPixel];
// this.mainVNCBitmap = Bitmap.createBitmap(screenWidth, screenHeight,
// Config.ARGB_8888);
this.mainVNCBitmap = Bitmap.createBitmap(prefs.framebufferWidth,
prefs.framebufferHeight, Config.ARGB_8888);
tttRec.updateView(mainVNCBitmap);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment