You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
src/api-impl: fix up code style, mainly for code imported from AOSP
used the following (plus manual edits):
`clang-format --style="{BasedOnStyle: LLVM, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0}`
This commit is contained in:
@@ -6,37 +6,37 @@ import android.view.View;
|
||||
|
||||
public class AlertDialog extends Dialog {
|
||||
public static class Builder {
|
||||
public Builder(Context context){
|
||||
public Builder(Context context) {
|
||||
System.out.println("making an AlertDialog$Builder as we speak, my word!");
|
||||
}
|
||||
|
||||
public AlertDialog.Builder setPositiveButton (int textId, DialogInterface.OnClickListener listener) {
|
||||
public AlertDialog.Builder setPositiveButton(int textId, DialogInterface.OnClickListener listener) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public AlertDialog.Builder setPositiveButton (CharSequence text, DialogInterface.OnClickListener listener) {
|
||||
public AlertDialog.Builder setPositiveButton(CharSequence text, DialogInterface.OnClickListener listener) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public AlertDialog.Builder setCancelable (boolean cancelable) {
|
||||
public AlertDialog.Builder setCancelable(boolean cancelable) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public AlertDialog.Builder setIcon (int iconId) {
|
||||
public AlertDialog.Builder setIcon(int iconId) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public AlertDialog.Builder setTitle (CharSequence title) {
|
||||
System.out.println("AlertDialog.Builder setTitle called with: '"+title+"'");
|
||||
public AlertDialog.Builder setTitle(CharSequence title) {
|
||||
System.out.println("AlertDialog.Builder setTitle called with: '" + title + "'");
|
||||
return this;
|
||||
}
|
||||
|
||||
public AlertDialog.Builder setMessage (CharSequence message) {
|
||||
System.out.println("AlertDialog.Builder setMessage called with: '"+message+"'");
|
||||
public AlertDialog.Builder setMessage(CharSequence message) {
|
||||
System.out.println("AlertDialog.Builder setMessage called with: '" + message + "'");
|
||||
return this;
|
||||
}
|
||||
|
||||
public AlertDialog.Builder setView (View view) {
|
||||
public AlertDialog.Builder setView(View view) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user