Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
8dceb159
Commit
8dceb159
authored
11 years ago
by
Maxime Graulich
Browse files
Options
Downloads
Patches
Plain Diff
Android: add back button to About Activity
parent
d15f9c7e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/mobile/Android/src/org/geuz/onelab/AboutActivity.java
+12
-1
12 additions, 1 deletion
...rib/mobile/Android/src/org/geuz/onelab/AboutActivity.java
with
12 additions
and
1 deletion
contrib/mobile/Android/src/org/geuz/onelab/AboutActivity.java
+
12
−
1
View file @
8dceb159
...
...
@@ -3,12 +3,15 @@ package org.geuz.onelab;
import
java.lang.String
;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.view.MenuItem
;
import
android.webkit.WebView
;
public
class
AboutActivity
extends
Activity
{
protected
void
onCreate
(
android
.
os
.
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
getActionBar
().
setDisplayHomeAsUpEnabled
(
true
);
WebView
webview
=
new
WebView
(
this
);
String
aboutGmsh
=
Gmsh
.
getAboutGmsh
();
String
aboutGetDP
=
Gmsh
.
getAboutGetDP
();
...
...
@@ -24,5 +27,13 @@ public class AboutActivity extends Activity{
webview
.
loadDataWithBaseURL
(
""
,
aboutOnelab
+
aboutGmsh
+
aboutGetDP
,
"text/html"
,
"UTF-8"
,
""
);
setContentView
(
webview
);
}
@Override
public
boolean
onMenuItemSelected
(
int
featureId
,
MenuItem
item
)
{
if
(
item
.
getItemId
()
==
android
.
R
.
id
.
home
)
{
Intent
returnIntent
=
new
Intent
();
this
.
setResult
(
RESULT_CANCELED
,
returnIntent
);
this
.
finish
();
}
return
super
.
onMenuItemSelected
(
featureId
,
item
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment