Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
using roboguice now.
- Loading branch information
Showing
37 changed files
with
480 additions
and
158 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:src="@drawable/list_gap" | ||
android:src="@drawable/ic_list_gap" | ||
android:tileMode="repeat"/> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package org.mariotaku.twidere.activity; | ||
|
||
import com.actionbarsherlock.app.SherlockFragmentActivity; | ||
|
||
public class AboutActivity extends SherlockFragmentActivity { | ||
public class AboutActivity extends BaseActivity { | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.mariotaku.twidere.activity; | ||
|
||
import org.mariotaku.twidere.Constants; | ||
import org.mariotaku.twidere.R; | ||
|
||
import android.content.Context; | ||
import android.content.SharedPreferences; | ||
import android.os.Bundle; | ||
|
||
import com.github.rtyley.android.sherlock.roboguice.activity.RoboSherlockFragmentActivity; | ||
|
||
public class BaseActivity extends RoboSherlockFragmentActivity implements Constants { | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
setTheme(); | ||
super.onCreate(savedInstanceState); | ||
} | ||
|
||
public void setTheme() { | ||
SharedPreferences preferences = getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); | ||
setTheme(preferences.getBoolean(PREFERENCE_KEY_DARK_THEME, false) ? R.style.Theme_Twidere | ||
: R.style.Theme_Twidere_Light); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/org/mariotaku/twidere/activity/BaseDialogActivity.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 org.mariotaku.twidere.activity; | ||
|
||
import org.mariotaku.twidere.Constants; | ||
import org.mariotaku.twidere.R; | ||
|
||
import android.content.Context; | ||
import android.content.SharedPreferences; | ||
import android.os.Bundle; | ||
|
||
import com.github.rtyley.android.sherlock.roboguice.activity.RoboSherlockFragmentActivity; | ||
|
||
public class BaseDialogActivity extends RoboSherlockFragmentActivity implements Constants { | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
setTheme(); | ||
super.onCreate(savedInstanceState); | ||
} | ||
|
||
public void setTheme() { | ||
SharedPreferences preferences = getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); | ||
setTheme(preferences.getBoolean(PREFERENCE_KEY_DARK_THEME, false) ? R.style.Theme_Holo_Dialog | ||
: R.style.Theme_Holo_Light_Dialog); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/org/mariotaku/twidere/activity/BasePreferenceActivity.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 org.mariotaku.twidere.activity; | ||
|
||
import org.mariotaku.twidere.Constants; | ||
import org.mariotaku.twidere.R; | ||
|
||
import android.content.Context; | ||
import android.content.SharedPreferences; | ||
import android.os.Bundle; | ||
|
||
import com.actionbarsherlock.app.SherlockPreferenceActivity; | ||
|
||
public class BasePreferenceActivity extends SherlockPreferenceActivity implements Constants { | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
setTheme(); | ||
super.onCreate(savedInstanceState); | ||
} | ||
|
||
public void setTheme() { | ||
SharedPreferences preferences = getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); | ||
setTheme(preferences.getBoolean(PREFERENCE_KEY_DARK_THEME, false) ? R.style.Theme_Twidere | ||
: R.style.Theme_Twidere_Light); | ||
} | ||
} |
Oops, something went wrong.