remove unused amazon device check
This commit is contained in:
parent
eae22a4771
commit
34f23b9901
@ -50,10 +50,6 @@ public class CommonActivity extends ActionBarActivity {
|
|||||||
return m_prefs.getBoolean("show_unread_only", true);
|
return m_prefs.getBoolean("show_unread_only", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isAmazonDevice() {
|
|
||||||
return android.os.Build.MANUFACTURER.equals("Amazon");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnreadOnly(boolean unread) {
|
public void setUnreadOnly(boolean unread) {
|
||||||
SharedPreferences.Editor editor = m_prefs.edit();
|
SharedPreferences.Editor editor = m_prefs.edit();
|
||||||
editor.putBoolean("show_unread_only", unread);
|
editor.putBoolean("show_unread_only", unread);
|
||||||
|
@ -149,10 +149,8 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
|
|||||||
|
|
||||||
ft.commit();
|
ft.commit();
|
||||||
|
|
||||||
if (!isAmazonDevice()) {
|
AppRater.appLaunched(this);
|
||||||
AppRater.appLaunched(this);
|
checkTrial(true);
|
||||||
checkTrial(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else { // savedInstanceState != null
|
} else { // savedInstanceState != null
|
||||||
m_actionbarUpEnabled = savedInstanceState.getBoolean("actionbarUpEnabled");
|
m_actionbarUpEnabled = savedInstanceState.getBoolean("actionbarUpEnabled");
|
||||||
|
@ -176,10 +176,7 @@ public class OnlineActivity extends CommonActivity {
|
|||||||
if (isOffline) {
|
if (isOffline) {
|
||||||
switchOfflineSuccess();
|
switchOfflineSuccess();
|
||||||
} else {
|
} else {
|
||||||
|
checkTrial(false);
|
||||||
if (!isAmazonDevice()) {
|
|
||||||
checkTrial(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* if (getIntent().getExtras() != null) {
|
/* if (getIntent().getExtras() != null) {
|
||||||
Intent i = getIntent();
|
Intent i = getIntent();
|
||||||
@ -1261,19 +1258,15 @@ public class OnlineActivity extends CommonActivity {
|
|||||||
|
|
||||||
initMenu();
|
initMenu();
|
||||||
|
|
||||||
if (!isAmazonDevice()) {
|
List<PackageInfo> pkgs = getPackageManager()
|
||||||
List<PackageInfo> pkgs = getPackageManager()
|
.getInstalledPackages(0);
|
||||||
.getInstalledPackages(0);
|
|
||||||
|
for (PackageInfo p : pkgs) {
|
||||||
for (PackageInfo p : pkgs) {
|
if ("org.fox.ttrss.key".equals(p.packageName)) {
|
||||||
if ("org.fox.ttrss.key".equals(p.packageName)) {
|
Log.d(TAG, "license apk found");
|
||||||
Log.d(TAG, "license apk found");
|
menu.findItem(R.id.donate).setVisible(false);
|
||||||
menu.findItem(R.id.donate).setVisible(false);
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
menu.findItem(R.id.donate).setVisible(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user