Cleanup, some lint issues fixes
This commit is contained in:
@@ -262,16 +262,6 @@ public final class CalculatorActivityLauncher implements CalculatorEventListener
|
||||
});
|
||||
}
|
||||
break;
|
||||
case show_wiki_description:
|
||||
App.getUiThreadExecutor().execute(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
final Intent intent = new Intent(context, CalculatorWikiActivity.class);
|
||||
Android.addIntentFlags(intent, false, context);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
});
|
||||
break;
|
||||
case show_message_dialog:
|
||||
final DialogData dialogData = (DialogData) data;
|
||||
if (dialogData != null) {
|
||||
|
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2013 serso aka se.solovyev
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
* Contact details
|
||||
*
|
||||
* Email: se.solovyev@gmail.com
|
||||
* Site: http://se.solovyev.org
|
||||
*/
|
||||
|
||||
package org.solovyev.android.calculator;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.webkit.WebView;
|
||||
|
||||
/**
|
||||
* User: serso
|
||||
* Date: 6/16/13
|
||||
* Time: 6:26 PM
|
||||
*/
|
||||
public final class CalculatorWikiActivity extends EmptyActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setContentView(R.layout.cpp_wiki_page);
|
||||
|
||||
final WebView webView = (WebView) findViewById(R.id.cpp_wiki_webview);
|
||||
//webView.loadUrl("file:///android_asset/wiki/functions/sin/index.html");
|
||||
}
|
||||
}
|
@@ -60,7 +60,6 @@ import org.solovyev.common.text.Strings;
|
||||
|
||||
import android.support.v4.app.ListFragment;
|
||||
|
||||
import static org.solovyev.android.calculator.CalculatorEventType.show_wiki_description;
|
||||
|
||||
/**
|
||||
* User: serso
|
||||
@@ -275,14 +274,6 @@ public abstract class AbstractMathEntityListFragment<T extends MathEntity> exten
|
||||
} else {
|
||||
description.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
final View descriptionButton = result.findViewById(R.id.math_entity_description_imageview);
|
||||
descriptionButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Locator.getInstance().getCalculator().fireCalculatorEvent(show_wiki_description, null);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user