Commit 6f43d4eb authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner
Browse files

make checkstyle happy with instance variable names

[ant:checkstyle] [ERROR]
/export/share/code/fdroid/client/app/src/main/java/com/geecko/QuickLyric/view/AppCompatListPreference.java:35:29:
Name 'mDialog' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. [MemberName]

Introduced in 79ecffc9
parent bfc1060b
Pipeline #6677493 passed with stage
in 56 minutes and 59 seconds
......@@ -32,7 +32,7 @@ import java.lang.reflect.Method;
public class AppCompatListPreference extends ListPreference {
private AppCompatDialog mDialog;
private AppCompatDialog appCompatDialog;
public AppCompatListPreference(Context context) {
super(context);
......@@ -44,7 +44,7 @@ public class AppCompatListPreference extends ListPreference {
@Override
public AppCompatDialog getDialog() {
return mDialog;
return appCompatDialog;
}
@Override
......@@ -82,19 +82,19 @@ public class AppCompatListPreference extends ListPreference {
e.printStackTrace();
}
mDialog = builder.create();
appCompatDialog = builder.create();
if (state != null) {
mDialog.onRestoreInstanceState(state);
appCompatDialog.onRestoreInstanceState(state);
}
mDialog.show();
appCompatDialog.show();
}
@Override
public void onActivityDestroy() {
super.onActivityDestroy();
if (mDialog != null && mDialog.isShowing() &&
mDialog.getWindow() != null && mDialog.getWindow().getWindowManager() != null) {
mDialog.dismiss();
if (appCompatDialog != null && appCompatDialog.isShowing() &&
appCompatDialog.getWindow() != null && appCompatDialog.getWindow().getWindowManager() != null) {
appCompatDialog.dismiss();
}
}
}
\ No newline at end of file
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