-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a help message and deletion confirmation. Moved the "New Config…
…" option from the list to a menu. Added more input validation and caught a couple more potential null pointer exceptions.
- Loading branch information
1 parent
93d0d02
commit 07c47f8
Showing
16 changed files
with
210 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/src/main/java/biz/incomsystems/fwknop2/HelpActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package biz.incomsystems.fwknop2; | ||
|
||
import android.content.Context; | ||
import android.content.SharedPreferences; | ||
import android.os.Bundle; | ||
import android.support.v4.app.FragmentActivity; | ||
import android.text.Html; | ||
import android.text.method.LinkMovementMethod; | ||
import android.widget.TextView; | ||
|
||
public class HelpActivity extends FragmentActivity { | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_help); | ||
TextView textView = (TextView) findViewById (R.id.help_page); | ||
textView.setMovementMethod(LinkMovementMethod.getInstance()); | ||
textView.setTextColor(getResources().getColor(android.R.color.black)); | ||
textView.setText(Html.fromHtml(getString(R.string.help_page))); | ||
SharedPreferences prefs = getSharedPreferences("MyPreferences", Context.MODE_PRIVATE); | ||
SharedPreferences.Editor ed = prefs.edit(); | ||
ed.putBoolean("HaveShownPrefs", true); | ||
ed.apply(); | ||
} | ||
} |
Oops, something went wrong.