Added remarks

pull/214/head
M66B 1 year ago
parent aba9e355ef
commit 146b8c12e7

@ -481,7 +481,7 @@ public abstract class DB extends RoomDatabase {
if (cache_size != null) {
cache_size = -cache_size; // kibibytes
Log.i("Set PRAGMA cache_size=" + cache_size);
// TODO CASA
// TODO CASA PRAGMA does not support placeholders
try (Cursor cursor = db.query("PRAGMA cache_size=" + cache_size + ";")) {
cursor.moveToNext(); // required
}
@ -502,7 +502,7 @@ public abstract class DB extends RoomDatabase {
// https://www.sqlite.org/pragma.html
for (String pragma : DB_PRAGMAS)
if (!"compile_options".equals(pragma) || BuildConfig.DEBUG) {
// TODO CASA
// TODO CASA PRAGMA does not support placeholders
try (Cursor cursor = db.query("PRAGMA " + pragma + ";")) {
boolean has = false;
while (cursor.moveToNext()) {

@ -621,7 +621,7 @@ public class EntityMessage implements Serializable {
static File getFile(Context context, Long id) {
File root = Helper.ensureExists(context, "messages");
File dir = new File(root, "D" + (id / 1000));
dir.mkdir(); // TODO CASA
dir.mkdir(); // TODO CASA composed directory name
return new File(dir, id.toString());
}

@ -2458,13 +2458,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
info.group = ex.toString();
}
ssb.append(info.name).append('\n'); // TODO CASA
ssb.append(info.name).append('\n'); // TODO CASA permission info
if (granted)
ssb.setSpan(new StyleSpan(Typeface.BOLD), start, ssb.length(), 0);
start = ssb.length();
if (info.group != null) {
ssb.append(info.group).append('\n'); // TODO CASA
ssb.append(info.group).append('\n'); // TODO CASA permission info
ssb.setSpan(new IndentSpan(dp24), start, ssb.length(), 0);
start = ssb.length();
}
@ -2494,7 +2494,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
break;
}
ssb.append(Integer.toHexString(info.protectionLevel)); // TODO CASA
ssb.append(Integer.toHexString(info.protectionLevel)); // TODO CASA permission info
if (info.flags != 0)
ssb.append(' ').append(Integer.toHexString(info.flags));

@ -240,7 +240,7 @@ public class Fts4DbHelper extends SQLiteOpenHelper {
" args=" + TextUtils.join(", ", args) +
" query=" + query);
List<Long> result = new ArrayList<>();
// TODO CASA
// TODO CASA composed SQL with placeholders
try (Cursor cursor = db.query(
"message", new String[]{"rowid"},
select.toString(),

@ -240,7 +240,7 @@ public class Fts5DbHelper extends SQLiteOpenHelper {
" args=" + TextUtils.join(", ", args) +
" query=" + criteria.query);
List<Long> result = new ArrayList<>();
// TODO CASA
// TODO CASA composed SQL with placeholders
try (Cursor cursor = db.query(
"message", new String[]{"rowid"},
select.toString(),

@ -1909,7 +1909,7 @@ public class Log {
draft.id = db.message().insertMessage(draft);
File file = draft.getFile(context);
Helper.writeText(file, body); // TODO CASA
Helper.writeText(file, body); // TODO CASA system info
db.message().setMessageContent(draft.id, true, null, 0, null, null);
attachSettings(context, draft.id, 1);
@ -3828,7 +3828,7 @@ public class Log {
private static int write(OutputStream os, String text) throws IOException {
byte[] bytes = text.getBytes();
os.write(bytes); // TODO CASA
os.write(bytes); // TODO CASA system info
return bytes.length;
}

@ -65,7 +65,7 @@ public class NoStreamException extends SecurityException {
ImageButton ibInfo = dview.findViewById(R.id.ibInfo);
//tvUri.setText(uri == null ? null : uri.toString());
tvUri.setVisibility(View.GONE); // TODO CASA
tvUri.setVisibility(View.GONE); // TODO CASA URI
ibInfo.setOnClickListener(new View.OnClickListener() {
@Override

@ -28,7 +28,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
// TODO CASA
// TODO CASA logging
public class ThrowableWrapper extends Throwable {
private String msg;
private final Throwable ex;

Loading…
Cancel
Save