{
String connectionMethod = preferences.getString(IPreferenceCameraPropertyAccessor.CONNECTION_METHOD, IPreferenceCameraPropertyAccessor.CONNECTION_METHOD_DEFAULT_VALUE);
int methodId = (connectionMethod.contains(IPreferenceCameraPropertyAccessor.CONNECTION_METHOD_THETA)) ? R.string.connection_method_theta : R.string.connection_method_opc;
- setMessage(IShowInformation.AREA_5, Color.MAGENTA, getString(methodId));
+ setMessage(IShowInformation.AREA_7, Color.MAGENTA, getString(methodId));
+ if (liveView == null)
+ {
+ liveView = findViewById(R.id.liveview);
+ }
+ liveView.setupInitialBackgroundImage(this);
+ liveView.invalidate();
}
catch (Exception e)
{
import android.graphics.PointF;
import android.graphics.Rect;
import android.graphics.RectF;
+
+import androidx.annotation.NonNull;
import androidx.exifinterface.media.ExifInterface;
import androidx.preference.PreferenceDataStore;
gridFrameDrawer = GridFrameFactory.getGridFrameDrawer(framingGridStatus);
// ダミーのビットマップデータ読み込み...画面表示のテスト用ロジック
- try
- {
- int imageId = R.drawable.momonga;
- try
- {
- String connectionMethod = preferences.getString(IPreferenceCameraPropertyAccessor.CONNECTION_METHOD, IPreferenceCameraPropertyAccessor.CONNECTION_METHOD_DEFAULT_VALUE);
- if (connectionMethod != null)
- {
- imageId = (connectionMethod.contains(IPreferenceCameraPropertyAccessor.CONNECTION_METHOD_THETA)) ? R.drawable.kamakura : R.drawable.momonga;
- }
- }
- catch (Throwable tt)
- {
- tt.printStackTrace();
- }
- imageBitmap = BitmapFactory.decodeResource(context.getResources(), imageId);
- }
- catch (Throwable t)
- {
- t.printStackTrace();
- imageBitmap = null;
- }
+ setupInitialBackgroundImage(context);
}
/**
}
}
+ public void setupInitialBackgroundImage(@NonNull Context context)
+ {
+ try
+ {
+ int imageId = R.drawable.momonga;
+ try
+ {
+ String connectionMethod = preferences.getString(IPreferenceCameraPropertyAccessor.CONNECTION_METHOD, IPreferenceCameraPropertyAccessor.CONNECTION_METHOD_DEFAULT_VALUE);
+ if (connectionMethod != null)
+ {
+ imageId = (connectionMethod.contains(IPreferenceCameraPropertyAccessor.CONNECTION_METHOD_THETA)) ? R.drawable.kamakura : R.drawable.momonga;
+ }
+ }
+ catch (Throwable tt)
+ {
+ tt.printStackTrace();
+ }
+ imageBitmap = BitmapFactory.decodeResource(context.getResources(), imageId);
+ }
+ catch (Throwable t)
+ {
+ t.printStackTrace();
+ imageBitmap = null;
+ }
+ }
+
/**
*
*