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 79ecffc91c8856e7ceb6a65441d19a6272195426
This commit is contained in:
parent
bfc1060bfb
commit
6f43d4eb18
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user